pencil.js / event-emitter / EventCallback
Type Alias: EventCallback<E>
ts
type EventCallback<E> = (this, event) => void;Defined in: event-emitter.ts:7
Function called when an event is fired
Type Parameters
| Type Parameter | Default type |
|---|---|
E extends BaseEvent | any |
Parameters
| Parameter | Type |
|---|---|
this | EventEmitter |
event | E |
Returns
void
