1
0
silverbullet/packages/silverbullet-common/manifest.ts

25 lines
739 B
TypeScript
Raw Normal View History

2022-03-27 09:31:12 +00:00
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;
2022-03-21 14:21:34 +00:00
2022-04-11 18:34:09 +00:00
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;