On this page
Constructors
Properties

Interface WeakRefConstructor

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

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>
Was this helpful?
SDK JS
Reference
WeakRefConstructor