{
"compilerOptions": {
"target": "ESNext",
"module": "Preserve",
"strict": true
}
}
targetThe special
ESNextvalue refers to the highest version your version of TypeScript supports.
Changing
targetalso changes the default value oflib.
moduleYou very likely want
"nodenext"for modern Node.js projects andpreserveoresnextfor code that will be bundled.
Changing
moduleaffectsmoduleResolution
preserve…this
modulemode best reflects the capabilities of most modern bundlers, as well as the Bun runtime.
strictThe
strictflag enables a wide range of type checking behavior that results in stronger guarantees of program correctness.