On this page
Properties
Methods

Interface WeakRef<T>

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

Type Parameters

Index

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 | undefined

Was this helpful?
SDK JS
Reference
WeakRef