UNPKG

@riddance/host

Version:

11 lines (10 loc) 481 B
import { type Handler as EventFunction, type HandlerConfiguration } from '../event.js'; import { type FullConfiguration, type Metadata } from './meta.js'; export type EventHandler = { meta: Metadata | undefined; config: FullConfiguration | undefined; topic: string; type: string; entry: EventFunction; }; export declare function registerEventHandler(topic: string, type: string, configOrHandler: HandlerConfiguration | EventFunction, fn?: EventFunction): void;