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