TypeScript Utility Types
ConstructorParameters<T> — constructor argument tuple
ConstructorParameters extracts the parameter tuple from a construct signature, including optional and rest parameters. The constraint accepts abstract construct signatures; extracting the arguments does not make an abstract class instantiable. The class instance type is not itself a constructor type: use typeof Class to refer to the static constructor side. Example output: "Ready". Verified with strict TypeScript 5.8.3, ES2022 and Node.js 22.16.0. This utility affects static typing; no runtime validation or transformation is supplied by the type itself.
Formal Syntax & Structure
typescript syntaxtypescript
ConstructorParameters<T>Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| T | T extends abstract new (...args: any) => any | Constructor type; abstract constructor signatures are accepted. |
Working Example
Example Snippettypescript
class Entry { constructor(public id: number, public label: string) {} }const args: ConstructorParameters<typeof Entry> = [3, "Ready"];console.log(new Entry(...args).label);