Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Type Alias AnyClass<T_Object, T_ConstructParams>

    AnyClass: new (...args: T_ConstructParams) => T_Object

    Refines the function type to only apply to classes.

    Type Parameters

    • T_Object extends any = any

      Optionally restrict the type of object for the class instances.

    • T_ConstructParams extends (any | never)[] = (any | never)[]

      Optionally restrict the constructor params.

    0.1.0

    2.0.0-alpha — Is now global rather than being the only member of the Functions namespace.