Interface WeakRef<T>

    interface WeakRef<T extends WeakKey> {
        "[toStringTag]": "WeakRef";
        deref(): T;
    }

    Type Parameters

    Properties

    Methods

    Properties

    "[toStringTag]": "WeakRef"

    Methods

    • Returns the WeakRef instance's target value, or undefined if the target value has been reclaimed. In es2023 the value can be either a symbol or an object, in previous versions only object is permissible.

      Returns T