TypeScript for Enterprise Applications - Part 2
Advanced Configuration for TypeScript for applications at the scale of Enterprise.

tsconfig.json is a configuration file for TypeScript projects. It is located in the root folder of a TypeScript project and contains compiler options to compile the TypeScript code..
tsc cli-tool, if invoked without parameters, starts searching for tsconfig.json in the current directory and moves up the parent directories until it finds the file. Alternatively, you can specify the file's location using the --project parameter.With the option "strict": true, it ensures strong correctness of a program by enabling these checks:noImplicitAny restricts to define explicit any for a variable.
noImplicitThisraises error when there is athisis any implicitany.alwaysStrictJS "use strict" mode.strictBindCallApplyrestricts bind, call and apply calling underlying function with correct type.strictNullChecksrestricts using null explicit.strictFunctionTypesfunction parameters to be checked for their types.strictPropertyInitializationgive value to properties.noUnusedLocals stops you using unused local variables.
noUnusedparameters restricts you using unused parameter with prefix "_"
noImplicitReturnsrestricts return typenoFallthroughCasesInSwitchreturns error if non-empty case doesn't do break or return.typesspecify @types/* packages to be included.stripInternalinformation meant only for internal purposes.exactOptionalPropertyTypesIt stops usingundefinedas an optional property.noUncheckedIndexedAccessundeclared keys should be assigned toundefinedso they won't go unchecked.noPropertyAccessFromIndexSignatureproperty should be accessed using the"[]"syntax and not the"."syntax.noImplicitOverrideshould specify 'override' explicitly.allowSyntheticDefaultImportsallow commonJS module as ESM module.esModuleInteropmanages interoperability of ESM and CJS.skipDefaultLibCheckstops breaking changes from node_modules.useUnknownInCatchVariableserrors caught will be promoted tounknowninstead ofany.



