From 475468cc8fead357c7f9329811d75a2bd0572b36 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Tue, 15 Dec 2020 11:06:02 +0100 Subject: [PATCH] refactor(core): remove custom globalThis (#40123) This is provided by TypeScript since version 3.4 PR Close #40123 --- packages/core/src/util/global.ts | 2 -- packages/core/test/util/global_spec.ts | 3 --- 2 files changed, 5 deletions(-) diff --git a/packages/core/src/util/global.ts b/packages/core/src/util/global.ts index 0910b69fe6..e4f01f5a93 100644 --- a/packages/core/src/util/global.ts +++ b/packages/core/src/util/global.ts @@ -12,8 +12,6 @@ declare var WorkerGlobalScope: any /** TODO #9100 */; // We don't want to include the whole node.d.ts this this compilation unit so we'll just fake // the global "global" var for now. declare var global: any /** TODO #9100 */; -// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332 -declare var globalThis: any /** TODO #9100 */; const __globalThis = typeof globalThis !== 'undefined' && globalThis; const __window = typeof window !== 'undefined' && window; diff --git a/packages/core/test/util/global_spec.ts b/packages/core/test/util/global_spec.ts index 0ea8522378..e7f91e055c 100644 --- a/packages/core/test/util/global_spec.ts +++ b/packages/core/test/util/global_spec.ts @@ -8,9 +8,6 @@ import {global} from '../../src/util/global'; -// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332 -declare var globalThis: any /** TODO #9100 */; - { describe('global', () => { it('should be global this value', () => {