Type Alias TransformerOutput<TTransformerInput, TOutput>

TransformerOutput: TTransformerInput extends (
    TTransformerInput extends TransformerInput<infer TInput>
        ? TInput
        : never
)
    ? TOutput
    : Iterable<TOutput>

Transformer output, based on transformer input:

  • If type TTransformerInput is primitive, result is type TOutput.
  • If type TTransformerInput is Iterable, result is type Iterable.

Type Parameters