Skip to content
Functioncorev0.12.0Decorator

Subscribe

Registers a subscriber class with one or more subscription keys.

Supply one [key, options?] tuple per key. The subscriber's generic must list the same keys.

Subscribe<Defs>(
    defs: Defs
): <
    HandlerCtor extends Constructor<
        Subscriber<Defs[number][0], CoreBase>
    >
>(
    constructor: HandlerCtor
) => void

Defs

Defs

defs

defs: Defs