Type Alias TransformerCallback<TInput, TOutput>

TransformerCallback: (input: TInput, index: number) => TOutput

Transformer callback, used to convert transformed value to its final value.

Type Parameters

  • TInput extends TransformerPrimitive

    Transformer input primitive type.

  • TOutput

    Transformer output type.

Type declaration

    • (input: TInput, index: number): TOutput
    • Parameters

      • input: TInput

        Input value.

      • index: number

        Index in sequence (0 for single transformation).

      Returns TOutput

      Output value.