TypeScript Syntax and Type Operators

Construct signature — constructor type

A construct signature describes a value that may be invoked with new and the type of instance produced. It checks the constructor side, not the instance side, of a class. Some JavaScript functions are callable but not constructible, so a call signature alone cannot satisfy a constructor contract. Abstract constructor types require separate treatment. Example output: "8". Tested in the strict TypeScript 5.8.3 / ES2022 baseline; the example is not a runtime type validator.

Formal Syntax & Structure

typescript syntaxtypescript
type Factory = { new (id: number): { id: number } };

Working Example

Example Snippettypescript
type Factory = { new (id: number): { id: number } };class Ticket { constructor(public id: number) {} }const make: Factory = Ticket;console.log(new make(8).id);
TypeScript Reference