silverbullet/lib/plugos/eventhook.ts

8 lines
252 B
TypeScript

import type { EventHookT } from "$lib/manifest.ts";
import type { Hook } from "./types.ts";
export interface EventHookI extends Hook<EventHookT> {
dispatchEvent(eventName: string, ...args: unknown[]): Promise<unknown[]>;
listEvents(): string[];
}