Skip to main content

OmitFirtArg

@webda/utils


Type Alias: OmitFirtArg<F>

OmitFirtArg<F> = F extends (x, ...args) => infer R ? Parameters<(...args) => R> : never

Defined in: packages/utils/src/types.ts:79

Remove the first argument of a function type and return the remaining parameter tuple. Used internally by ClassAnnotation.

Note: this type name contains a typo ("Firt" instead of "First"); prefer OmitFirstArg for new code.

Type Parameters​

F​

F