{
"scripts": {
"test": "tsc",
},
"devDependencies": {
"typescript": "^2.2.2"
}
}
{
"compilerOptions": {
"typeRoots": [
"./node_modules/@types",
"./index.d.ts"
],
"lib": [
"es2017",
"dom"
],
"target": "es2017",
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
"declaration": false,
"allowSyntheticDefaultImports": false,
"strictNullChecks": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": false
},
"exclude": [
"./node_modules",
"./cache"
]
}
if (!Number.isNaN(value)) {
return Number.parseInt(value);
}
error TS2339: Property 'isNaN' does not exist on type 'NumberConstructor'.
error TS2339: Property 'parseInt' does not exist on type 'NumberConstructor'.
What's wrong?
{ "scripts": { "test": "tsc", }, "devDependencies": { "typescript": "^2.2.2" } }What's wrong?