Files
plainleaf/client/types/command.ts
T
Zef HemelandGitHub a524c64884 Go backend (#1555)
* Replaces old Deno server with a Go implementation
* Restructured the code base accordingly
2025-09-19 13:23:20 +02:00

16 lines
439 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;
};