TypeScript/tests/cases/conformance/es2019/globalThisGlobalExportAsGlobal.ts
Nathan Shively-Sanders 29f9493d87
Fix crash when exporting+aliasing globalThis inside declare global (#34408)
* global module:Fix crash when exporting+aliasing globalThis

* Fix another globalThis crash

find-all-refs assumed that an export inside a `declare x` was always an
ambient module, but it is not -- `declare global` does not allow
`export`, so find-all-refs shouldn't return any refs for this error case.
2019-10-15 14:05:39 -07:00

5 lines
115 B
TypeScript

// https://github.com/microsoft/TypeScript/issues/33754
declare global {
export { globalThis as global }
}