1
0
silverbullet/common/manifest.ts
2022-03-27 11:31:12 +02:00

25 lines
629 B
TypeScript

import * as plugos from "../plugos/types";
import { EndpointHook } from "../plugos/feature/endpoint";
import { CronHook } from "../plugos/feature/node_cron";
import { EventHook } from "../plugos/feature/event";
export type CommandDef = {
name: string;
// Bind to keyboard shortcut
key?: string;
mac?: string;
// If to show in slash invoked menu and if so, with what label
// should match slashCommandRegexp
slashCommand?: string;
};
export type SilverBulletHooks = {
command?: CommandDef | CommandDef[];
} & EndpointHook &
CronHook &
EventHook;
export type Manifest = plugos.Manifest<SilverBulletHooks>;