mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
fix(core): WeakRef deprecation notes
This commit is contained in:
5
packages/core/global-types.d.ts
vendored
5
packages/core/global-types.d.ts
vendored
@ -221,17 +221,16 @@ interface RequireContext {
|
||||
resolve(id: string): string;
|
||||
}
|
||||
|
||||
declare class WeakRef<T> {
|
||||
constructor(obj: T);
|
||||
interface WeakRef<T extends object> {
|
||||
/**
|
||||
* @deprecated Use deref instead with 8.4+
|
||||
*/
|
||||
get(): T;
|
||||
|
||||
/**
|
||||
* @deprecated You no longer need to make this call and can be safely removed.
|
||||
*/
|
||||
clear(): void;
|
||||
deref(): T | undefined;
|
||||
}
|
||||
|
||||
declare var __dirname: string;
|
||||
|
Reference in New Issue
Block a user