Files
plainleaf/lib/plugos/eventhook.ts
T
2024-07-30 17:33:33 +02:00

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[];
}