Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Interface WeakRefConstructor

interface WeakRefConstructor {
    new WeakRefConstructor<T extends WeakKey>(target: T): WeakRef<T>;
    prototype: WeakRef<any>;
}
Index
  • 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>

prototype: WeakRef<any>
Was this helpful?