diff --git a/packages/core/global-types.d.ts b/packages/core/global-types.d.ts index d2ed63563..1f9e48e11 100644 --- a/packages/core/global-types.d.ts +++ b/packages/core/global-types.d.ts @@ -221,6 +221,19 @@ interface RequireContext { resolve(id: string): string; } +declare class WeakRef { + 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 { - constructor(obj: T); - get(): T; - clear(): void; - deref(): T | undefined; -} - /** * Create a Java long from a number */