UNPKG

typescript-types

Version:
6 lines (5 loc) 126 B
export type Prepend<E, T extends any[]> = ((head: E, ...args: T) => any) extends (( ...args: infer U ) => any) ? U : T;