Type alias AllConstructorParameters<Constructors>

AllConstructorParameters<Constructors>: Exclude<ArrayElement<ConstructorParams<Constructors>>, undefined> extends never
    ? []
    : ConstructorParams<Constructors>

Flattens all constructor parameters to an empty array if none of them exist, so you can call a constructor with no arguments when no are expected.

Type Parameters

  • Constructors extends Constructor<any>[]

Generated using TypeDoc