1// @noEmit: true 2// @allowJs: true 3// @filename: spellingUncheckedJS.js 4export var inModule = 1 5inmodule.toFixed() 6 7function f() { 8 var locals = 2 + true 9 locale.toFixed() 10 // @ts-expect-error 11 localf.toExponential() 12 // @ts-expect-error 13 "this is fine" 14} 15class Classe { 16 non = 'oui' 17 methode() { 18 // no error on 'this' references 19 return this.none 20 } 21} 22class Derivee extends Classe { 23 methode() { 24 // no error on 'super' references 25 return super.none 26 } 27} 28 29 30var object = { 31 spaaace: 3 32} 33object.spaaaace // error on read 34object.spaace = 12 // error on write 35object.fresh = 12 // OK 36other.puuuce // OK, from another file 37new Date().getGMTDate() // OK, from another file 38 39// No suggestions for globals from other files 40const atoc = setIntegral(() => console.log('ok'), 500) 41AudioBuffin // etc 42Jimmy 43Jon 44 45// @filename: other.js 46var Jimmy = 1 47var John = 2 48Jon // error, it's from the same file 49var other = { 50 puuce: 4 51} 52