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