Skip to content

ConstructorArgument

ConstructorArgument<T>: T extends (…args) => any ? P[0] : never

Infers the the first argument of a class

Type parameters

T

Source

precompiles/src/ConstructorArgument.ts:4