Type alias UnaryInput<UnaryFunction>

UnaryInput<UnaryFunction>: UnaryFunction extends Unary<infer Input, unknown> ? Input : never

Input type of an Unary.

Example

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

Type Parameters

  • UnaryFunction extends Unary<never, unknown>