refactor(core): remove custom globalThis (#40123)
This is provided by TypeScript since version 3.4 PR Close #40123
This commit is contained in:
parent
effc079831
commit
475468cc8f
|
@ -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;
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in New Issue