Wrapper class to export a class safely across resources. If a class is exported without this wrapper, it won't be able to be constructed in other resources.

Type Parameters

  • T extends Class

Constructors

Methods

Constructors

  • Type Parameters

    • T extends Class

    Parameters

    • prototype: T

      The class prototype to wrap

    Returns ExportedClass<T>

Methods

  • Returns a new instance of the wrapped class

    Parameters

    • Rest...args: ConstructorParameters<T>

    Returns InstanceType<T>

  • Used for accessing static methods of the wrapped class

    Returns T

    The object prototype of the wrapped class