![]() ![]() Watch Set to true and by default, the tsc will compile and watch changes, similar to tsc -w. NoFallthroughCasesInSwitch Set to true, and the compiler will raise an error if switch case doesn't have a default case. NoImplicitReturns Set to true, and the compiler will raise an error when not all code paths in function return a value. NoUnusedParameters Set to true and the compiler will raise an error in development mode for parameters not used in a functions NoUnusedLocals Set to true, and the compiler will raise an error for not used variables or properties. Strict" Enable all restriction by default like nullchecks, strictPropertyInitialization it very helps full to avoid common errors. ![]() js files, if set to true the compiler doesn't generate the files if found some error. NoEmitOnError By default the compiler always generates the. ![]() The file structure defined in our project will be the same in the out directory. OutDir Help to generate the compiled files to a specific directory like dist or build. SourceMap If set to true, the compiler will generate sourcemaps for the typescript code and help for the debugging process with the browser. Lib : Is used to set library to be included in the compilation, by default if not set it will include DOM library, es6 and mostly library needs. Enter fullscreen mode Exit fullscreen mode ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |