Skip to content

@tripo3d/utils / index / EventBus

Interface: EventBus<TEventMap> ​

Defined in: event-bus.ts:11

Type Parameters ​

Type ParameterDefault type
TEventMap extends Record<string, unknown>DefaultEventMap

Properties ​

PropertyTypeDefined in
clear() => voidevent-bus.ts:12
emit<K>(type, payload) => voidevent-bus.ts:13
has<K>(type, handler?) => booleanevent-bus.ts:14
off<K>(type, handler) => voidevent-bus.ts:15
on<K>(type, handler) => () => voidevent-bus.ts:16
once<K>(type, handler) => () => voidevent-bus.ts:17

基于 MIT 协议发布(内部使用)