Created
October 13, 2023 13:55
-
-
Save otonii/38dce86bda14a6b2857ab0046860e100 to your computer and use it in GitHub Desktop.
typescript cheat sheet
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"compilerOptions": { | |
/* Base Options: */ | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"target": "ES2022", | |
"verbatimModuleSyntax": true, | |
"allowJs": true, | |
"resolveJsonModule": true, | |
"moduleDetection": "force", | |
/* Strictness */ | |
"strict": true, | |
"noUncheckedIndexedAccess": true, | |
/* If transpiling with TypeScript: */ | |
"moduleResolution": "NodeNext", | |
"module": "NodeNext", | |
"outDir": "dist", | |
"sourceMap": true, | |
/* If NOT transpiling with TypeScript: */ | |
"moduleResolution": "Bundler", | |
"module": "ESNext", | |
"noEmit": true, | |
/* If your code runs in DOM: */ | |
"lib": ["DOM", "DOM.Iterable", "ES2022"], | |
/* If your code doesn't run in the DOM: */ | |
"lib": ["ES2022"], | |
/* If you're building for a library: */ | |
"declaration": true, | |
/* If you're building for a library in a monorepo: */ | |
"composite": true, | |
"declarationMap": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment