1

Next example in VS2017 reported error: Property 'keys' does not exist on type 'any []'

[].keys()

Why error?

Version of Visual Studio 2017 - 15.6.4

Version of TypeScript tools - 15.6.20202.3

Version of TypeScript - 2.8

Serj-Tm
  • 16,581
  • 4
  • 54
  • 61

2 Answers2

1

The problem fixed after tsconfig.json changing.

tsconfig.json

"compilerOptions": {
  ..
  "lib":["es2015"]
  ..
}
Serj-Tm
  • 16,581
  • 4
  • 54
  • 61
0

"esnext" works for me when used in tsconfig.json. Using VS Code