Skip to main content

Interface: M2EventListener<T>

Base interface for all m2c2kit event listeners.

Extended by

Type parameters

T

Properties

callback()

callback: (event) => void

Callback function to be called when the event is dispatched.

Parameters

event: T

Returns

void

Source

M2EventListener.ts:10


key?

optional key: string

Optional key (string identifier) used to identify the event listener.

Source

M2EventListener.ts:12


type

type: string

Type of event to listen for.

Source

M2EventListener.ts:8