Proxyemitter

ProxyEmitter interface

Signature:

export interface ProxyEmitter<T extends Record<string, any[]>> 

Properties

Property

Modifiers

Type

Description

_EMIT_?

boolean

(Optional)

emit?

<K extends keyof T & string>(name: K, ...args: T[K]) => void

(Optional)

on

<K extends keyof T & string>(name: K, callback: (...args: T[K]) => void) => () => void