method EventEmitter.prototype.onimport { EventEmitter } from "https://deno.land/x/evtemitter@2.0.0/EventEmitter.ts"; on<K extends keyof T & string>(type: K, callback: CustomEventCallbackOn<T[K]>): thisadd a callback to an event on<K extends keyof T & string>(types: K[], callback: CustomEventCallbackOn<T[K]>): thisadd a callback to multiple events add a callback to an event Type ParametersK extends keyof T & stringParameterstype: Kthe event name the callback should listen to callback: CustomEventCallbackOn<T[K]>the callback to execute when the event is dispatched Returnsthisadd a callback to multiple events Type ParametersK extends keyof T & stringParameterstypes: K[]an array of the event names the callback should listen to callback: CustomEventCallbackOn<T[K]>the callback to execute when the event is dispatched Returnsthis