25 lines
739 B
TypeScript
25 lines
739 B
TypeScript
import * as plugos from "../plugos/types";
|
|
import { EndpointHookT } from "../plugos/hooks/endpoint";
|
|
import { CronHookT } from "../plugos/hooks/node_cron";
|
|
import { EventHookT } from "../plugos/hooks/event";
|
|
import { CommandHookT } from "../silverbullet-webapp/hooks/command";
|
|
import { SlashCommandHookT } from "../silverbullet-webapp/hooks/slash_command";
|
|
|
|
export type SilverBulletHooks = CommandHookT &
|
|
SlashCommandHookT &
|
|
EndpointHookT &
|
|
CronHookT &
|
|
EventHookT;
|
|
|
|
export type SyntaxExtensions = {
|
|
syntax?: { [key: string]: NodeDef };
|
|
};
|
|
|
|
export type NodeDef = {
|
|
firstCharacters: string[];
|
|
regex: string;
|
|
styles: { [key: string]: string };
|
|
};
|
|
|
|
export type Manifest = plugos.Manifest<SilverBulletHooks> & SyntaxExtensions;
|