import { type EventListener } from "https://deno.land/x/tui@1.3.4/src/event_emitter.ts";
Type for event listener function
Type Parameters
Events extends EventRecord
definition: (this: EventEmitter<Events>, ...args: Events[Type]["args"]) => void | Promise<void>