AIDC Toolkit / Utility / TransformerOutput
Type Alias: TransformerOutput<TTransformerInput, TOutput>
TransformerOutput<
TTransformerInput,TOutput> =TTransformerInputextendsTTransformerInputextendsTransformerInput<infer TInput> ?TInput:never?TOutput:Iterable<TOutput>
Defined in: transformer.ts:33
Transformer output, based on transformer input:
- If type TTransformerInput is primitive, result is type TOutput.
- If type TTransformerInput is Iterable, result is type Iterable<TOutput>.
Type Parameters
TTransformerInput
TTransformerInput extends TransformerInput<TransformerPrimitive>
Transformer input type.
TOutput
TOutput
Output base type.