Type alias Signals<IN, OUT, EFF>

Signals<IN, OUT, EFF>: SetupWithStore & SignalIds<IN, OUT> & EffectIds<EFF>

This type defines an immutable object that encapsulates SignalIds, SetupWithStore and EffectIds. The setup method creates all the necessary wireing to configure the Store instance for the SignalIds. The Signals type represents the reactive counterpart to a class-instance (the IN/OUT-NameToSignalId being the counterpart to a class-interface). SetupWithStore must add sources to the store for all output-ids, but it must NOT add sources for the input-ids and it must also NOT add effects for the effect-ids.

Type Parameters

  • IN extends NameToSignalId

    concrete NameToSignalId defining input signal-ids. SetupWithStore does NOT add corresponding signals to the store (hence this must be done by the user of this Signals object, e.g. via connect)

  • OUT extends NameToSignalId

    concrete NameToSignalId defining output signal-ids. In contrast to the input signal-ids, the SetupWithStore method takes care of setting up corresponding signals in the store.

  • EFF extends NameToEffectId = {}

    concrete NameToEffectId defining effect-ids. SetupWithStore does NOT add corresponding effects to the store (hence this must be done by the user of this Signals object)

Generated using TypeDoc