16 lines
436 B
TypeScript
16 lines
436 B
TypeScript
import type { CommandDef, SlashCommandDef } from "../lib/manifest.ts";
|
|
|
|
import type { SlashCompletions } from "@silverbulletmd/silverbullet/type/client";
|
|
|
|
export type Command = CommandDef & {
|
|
run?: (args?: any[]) => Promise<void>;
|
|
};
|
|
|
|
export type SlashCommand = SlashCommandDef & {
|
|
run: (...args: any[]) => Promise<SlashCompletions>;
|
|
};
|
|
|
|
export type CommandHookEvents = {
|
|
commandsUpdated(commands: Map<string, Command>): void;
|
|
};
|