You need the latest version.
In particular, you need TypeScript @> = 2.3
For installation at the project level (recommended)
npm install --dev typescript@latest
If you use tscthrough the global command line
npm install --global typescript@latest
, VS Code,
( )
{
"typescript.tsdk": "C:/Users/Aluan/AppData/Roaming/npm/node_modules/typescript/lib",
Linux OSX, :
"~/npm/node_modules/typescript/lib"
, VS TypesScript @> 3, , ...
:
JSPM:
:
jspm install --dev typescript@latest
VS Code:
{
"typescript.tsdk": "./jspm_packages/npm/typescript@latest/lib"
}
:
:
yarn add --dev typescript@latest
VS Code:
{
"typescript.tsdk": "./node_modules/typescript/lib"
}