method EventEmitter.prototype.emitimport { EventEmitter } from "https://deno.land/x/yxz@0.17.0/async/mod.ts"; emit<T extends keyof Events>(type: T, event?: Events[T])Emit an event of a given type. Emit an event of a given type. Type ParametersT extends keyof EventsParameterstype: Toptionalevent: Events[T]