Type alias UnaryOutput<UnaryFunction>

UnaryOutput<UnaryFunction>: UnaryFunction extends Unary<never, infer Output> ? Output : never

Output type of an Unary.

Example

const unary: Unary<number, string> = n => `${n}`;
UnaryOutput<typeof unary> // `string`

Type Parameters

  • UnaryFunction extends Unary<never, unknown>