ConstructorParameters<Type>

Constructs a tuple or array type from the constructor parameters.

Produces the never type if Type is not a class.

You can also use ConstructorParameters with an interface that describes a class definition.

Was this page helpful?