* Add tests for "Cannot find name 'global'. Did you mean 'global'?" * Fix "Cannot find name 'global'. Did you mean 'global'?" * Add an additional test case for spelling suggestions of "global". * Name the boolean for suggestions being global scope augmentations.
11 lines
265 B
TypeScript
11 lines
265 B
TypeScript
//// [spellingSuggestionGlobal4.ts]
|
|
export {}
|
|
declare global { var x: any }
|
|
global.x // should not suggest `global` (GH#42209)
|
|
|
|
|
|
//// [spellingSuggestionGlobal4.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
global.x; // should not suggest `global` (GH#42209)
|