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;
|
resolve(id: string): string;
|
||||||
}
|
}
|
||||||
|
|
||||||
declare class WeakRef<T> {
|
interface WeakRef<T extends object> {
|
||||||
constructor(obj: T);
|
|
||||||
/**
|
/**
|
||||||
* @deprecated Use deref instead with 8.4+
|
* @deprecated Use deref instead with 8.4+
|
||||||
*/
|
*/
|
||||||
get(): T;
|
get(): T;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @deprecated You no longer need to make this call and can be safely removed.
|
* @deprecated You no longer need to make this call and can be safely removed.
|
||||||
*/
|
*/
|
||||||
clear(): void;
|
clear(): void;
|
||||||
deref(): T | undefined;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
declare var __dirname: string;
|
declare var __dirname: string;
|
||||||
|
Reference in New Issue
Block a user