Type alias EntityEditFactory<Entity, LoadInput, SaveOutput, ValidationFailedType, LoadError, ValidationError, SaveError>

EntityEditFactory<Entity, LoadInput, SaveOutput, ValidationFailedType, LoadError, ValidationError, SaveError>: SignalsFactory<EntityEditInput<Entity, LoadInput>, EntityEditOutput<Entity, LoadInput, SaveOutput, ValidationFailedType, LoadError, ValidationError, SaveError>, EntityEditConfiguration<Entity>, EntityEditEffects<Entity, LoadInput, SaveOutput, ValidationFailedType, LoadError, ValidationError, SaveError>>

This type specifies a SignalsFactory producing signals to load, edit and persist an entity.

Type Parameters

  • Entity

    specifies the entity type

  • LoadInput = number

    specifies the input-type for the loading-effect will be LoadInput | null (defaults to number)

  • SaveOutput = LoadInput

    specifies the output-type for the save-effect (defaults to LoadInput)

  • ValidationFailedType = string

    specifies the type representing a failed validations (total or for a distinct property, hence ModelValidationResult<Entity, ValidationFailedType> will be used as validation result)

  • LoadError = string

    specifies the error type of the load-effect

  • ValidationError = string

    specifies the error type of the validation-effect (use never, if your validation cannot error)

  • SaveError = string

    specifies the error type of the result-effect

Generated using TypeDoc