处理因使用 BigInt 等最新语法时 ts 编译报错
tsconfig.json
{
"compilerOptions": {
"target": "ESNEXT",
"lib": ["DOM", "ESNEXT"],
},
}
index.ts
const a = 11n
tsconfig.json
{
"compilerOptions": {
"target": "ESNEXT",
"lib": ["DOM", "ESNEXT"],
},
}
index.ts
const a = 11n