424b805d61
* 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.
18 lines
352 B
Plaintext
18 lines
352 B
Plaintext
=== tests/cases/compiler/spellingSuggestionGlobal2.ts ===
|
|
export {}
|
|
declare global { const x: any }
|
|
>global : typeof global
|
|
>x : any
|
|
|
|
const globals = { x: true }
|
|
>globals : { x: boolean; }
|
|
>{ x: true } : { x: boolean; }
|
|
>x : boolean
|
|
>true : true
|
|
|
|
global.x // should suggest `globals` (GH#42209)
|
|
>global.x : any
|
|
>global : any
|
|
>x : any
|
|
|