Compose two functions.
First function type
Second function type
Creates a new function that applies F then G with proper type chaining. If types mismatch, the result is never.
never
type F = ( x: number ) => string;type G = ( y: string ) => boolean;type Composed = Compose< F, G >;// ( arg: number ) => boolean Copy
type F = ( x: number ) => string;type G = ( y: string ) => boolean;type Composed = Compose< F, G >;// ( arg: number ) => boolean
Compose two functions.