tags | |
---|---|
|
{
"target": "es2022",
"noUncheckedIndexedAccess": true,
"strict": true,
"skipLibCheck": true,
}
noUncheckedIndexedAccess
- prevent issue when object is possible undefined
export const myObj: Record<string, string[]> = {};
myObj.foo.push("bar"); // without noUncheckedIndexedAccess = true won't be an error
strict
- Enable all strict type-checking options
skipLibCheck
- Skip type checking of all .d.ts
files. This enhances performance as TypeScript doesn't perform type checking on npm package types.