method async.EventEmitter.prototype.emitimport { async } from "https://deno.land/x/yxz@0.17.0/index.ts"; const { EventEmitter } = async; 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]