Type alias ModelInputSignals<T>

ModelInputSignals<T>: {
    reset: EventId<undefined>;
    set: EventId<T>;
    setAsDefault: EventId<T>;
    update: EventId<ModelUpdateEventType<T>>;
    updateBy: EventId<ModelUpdateFunction<T>>;
    updateDeep: EventId<ModelUpdateDeepEventType<T>>;
}

Type specifying the input signal ids produced by a ModelSignalsFactory.

Type Parameters

  • T

    the type of the model to be handled

Type declaration

  • reset: EventId<undefined>

    identifier for the event to reset the model to the default state (configured or set by setAsDefault)

  • set: EventId<T>

    identifier for the event to replace the complete model

  • setAsDefault: EventId<T>

    like set, but also setting the new model as new default

  • update: EventId<ModelUpdateEventType<T>>

    in case the model is a Record<string, any>, identifier for the event to update the model by a given shallow-partial model, else equals the set event

  • updateBy: EventId<ModelUpdateFunction<T>>

    identifier for the event to update the model by a given update function

  • updateDeep: EventId<ModelUpdateDeepEventType<T>>

    in case the model is a Record<string, any>, identifier for the event to update the model by a given deep-partial model, else equals the set event

Generated using TypeDoc