Type alias EffectId<InputType, ResultType, ErrorType>

EffectId<InputType, ResultType, ErrorType>: symbol & {
    _errorType: ErrorType;
    _inputType: InputType;
    _resultType: ResultType;
}

The rx-signals Store uses this type to uniquely identify all of its result effects. An EffectId<InputType, ResultType, ErrorType> does not make any use of the generic parameters itself, but is given these parameters only as a trick to let Typescript infer and thus enforce the correct types. Use the getEffectId function to generate a corresponding ID.

Type Parameters

  • InputType

    specifies the type for the corresponding effects input

  • ResultType

    specifies the type for the corresponding effects result

  • ErrorType = unknown

    specifies the type error-type for the effect. Use never for effects that cannot error.

Generated using TypeDoc