Type Alias FactoryClass<TArgs, R>

FactoryClass<TArgs, R>: (new (...args: TArgs) => R)

A factory function that creates an instance of a class with a list of arguments.

Type Parameters

  • TArgs extends readonly unknown[]

    The argument types for the FactoryClass.

  • R

    The return type.