Skip to content

Commit 475468c

Browse files
alan-agius4josephperrott
authored andcommitted
refactor(core): remove custom globalThis (angular#40123)
This is provided by TypeScript since version 3.4 PR Close angular#40123
1 parent effc079 commit 475468c

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

packages/core/src/util/global.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ declare var WorkerGlobalScope: any /** TODO #9100 */;
1212
// We don't want to include the whole node.d.ts this this compilation unit so we'll just fake
1313
// the global "global" var for now.
1414
declare var global: any /** TODO #9100 */;
15-
// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332
16-
declare var globalThis: any /** TODO #9100 */;
1715

1816
const __globalThis = typeof globalThis !== 'undefined' && globalThis;
1917
const __window = typeof window !== 'undefined' && window;

packages/core/test/util/global_spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88

99
import {global} from '../../src/util/global';
1010

11-
// Not yet available in TypeScript: https://github.com/Microsoft/TypeScript/pull/29332
12-
declare var globalThis: any /** TODO #9100 */;
13-
1411
{
1512
describe('global', () => {
1613
it('should be global this value', () => {

0 commit comments

Comments
 (0)