Unary function.
Type to represent a function that takes a single argument, ideal for currying.
const unary: Unary<number, number> = number => number + 1; Copy
const unary: Unary<number, number> = number => number + 1;
Type of the input value.
Type of the output value.
Unary function.
Remarks
Type to represent a function that takes a single argument, ideal for currying.
Example
See