devtypes - v1.1.0
    Preparing search index...

    Type Alias Constructor<T>

    Constructor: new (...args: any[]) => T

    Create a class constructor from instance properties.

    Type Parameters

    • T

      The instance type

    Type Declaration

      • new (...args: any[]): T
      • Parameters

        • ...args: any[]

        Returns T

    Converts an interface or type into a full constructor signature. Useful for type-level operations where you need to represent class creation.

    type User = { id: number; name: string };
    type UserCtor = Constructor< User >;
    // new ( id: number, name: string ) => User