mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-23 17:16:52 +08:00
fix(core): WeakRef typings to include deref (#10006)
This commit is contained in:
1
packages/core/global-types.d.ts
vendored
1
packages/core/global-types.d.ts
vendored
@ -354,6 +354,7 @@ declare class WeakRef<T> {
|
|||||||
constructor(obj: T);
|
constructor(obj: T);
|
||||||
get(): T;
|
get(): T;
|
||||||
clear(): void;
|
clear(): void;
|
||||||
|
deref(): T | undefined;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user