Currently, I am working on the models section of my application and considering switching from using number
to bigint
for id types. However, despite knowing that this is supported from TSC 3.2.x, WebStorm is indicating an error with Unresolved type bigint
. Can anyone explain why this is happening and how it can be resolved?
Also, I'm curious if bigint
is JSON-convertible by default?
UPDATE: Information on Webstorm version and tsconfig.json
I am currently using WebStorm version 2019.1.3
and my tsconfig.json
file is as follows:
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"module": "esnext",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2018",
"dom"
]
}
}