Class Factory<T>

Type Parameters

  • T

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

prototype: T = ...
type: Class<T> = ...

Methods

  • Creates a new instance of the factory type

    Returns

    A new created instance of *

    Instance

    Parameters

    • Rest ...args: any[]

      Constructor arguments used for instantiation

    Returns T

  • Creates a new instance of the factory type

    Returns

    A new created instance of *

    Instance

    Parameters

    • Optional args: IArguments | any[]

      Constructor arguments used for instantiation

    Returns T

  • Creates a new Factory for the given type

    Returns

    A new object factory to created instances of T

    Type Parameters

    Parameters

    • this: Class<F>
    • type: Class<T>

      the type constructor of T

    Returns F & InstanceFactory<T>

  • Type Parameters

    Parameters

    • target: T
    • proto: P

    Returns T & P

Generated using TypeDoc