UNPKG

rambda

Version:

Lightweight faster alternative to Ramda

12 lines (11 loc) 265 B
/** Get the parameters of a class constructor * @param C **typeof** **`class`** * @returns **`any[]`** * @example * ```ts * ``` */ export type Parameters<C extends new (...args: any[]) => any> = C extends new (...args: infer P) => any ? P : never