mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): deprecation notes for WeakRef clear and get
This commit is contained in:
20
packages/core/global-types.d.ts
vendored
20
packages/core/global-types.d.ts
vendored
@@ -221,6 +221,19 @@ interface RequireContext {
|
||||
resolve(id: string): string;
|
||||
}
|
||||
|
||||
declare class WeakRef<T> {
|
||||
constructor(obj: T);
|
||||
/**
|
||||
* @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;
|
||||
declare var __filename: string;
|
||||
|
||||
@@ -350,13 +363,6 @@ declare function fail(data: any): void;
|
||||
|
||||
declare function zonedCallback(callback: Function): Function;
|
||||
|
||||
declare class WeakRef<T> {
|
||||
constructor(obj: T);
|
||||
get(): T;
|
||||
clear(): void;
|
||||
deref(): T | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a Java long from a number
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user