Interface WeakRefConstructor

    interface WeakRefConstructor {
        new WeakRefConstructornew <T>(target: T): WeakRef<T>;
        prototype: WeakRef<any>;
    }

    Constructors

    Properties

    Constructors

    • Creates a WeakRef instance for the given target value. In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.

      Type Parameters

      Parameters

      • target: T

        The target value for the WeakRef instance.

      Returns WeakRef<T>

    Properties

    prototype: WeakRef<any>