美文网首页
TSConfig文件详解02

TSConfig文件详解02

作者: 从零开始学ArchLinux | 来源:发表于2024-06-11 23:59 被阅读0次

编译器配置项分类

类型检查相关

allowUnreachableCode, allowUnusedLabels, alwaysStrict, exactOptionalPropertyTypes, noFallthroughCasesInSwitch, noImplicitAny, noImplicitOverride, noImplicitReturns, noImplicitThis, noPropertyAccessFromIndexSignature, noUncheckedIndexedAccess, noUnusedLocals, noUnusedParameters, strict, strictBindCallApply, strictFunctionTypes, strictNullChecks, strictPropertyInitialization and useUnknownInCatchVariables

模块相关

allowArbitraryExtensions, allowImportingTsExtensions, allowUmdGlobalAccess, baseUrl, customConditions, module, moduleResolution, moduleSuffixes, noResolve, paths, resolveJsonModule, resolvePackageJsonExports, resolvePackageJsonImports, rootDir, rootDirs, typeRoots and types

分发相关

declaration, declarationDir, declarationMap, downlevelIteration, emitBOM, emitDeclarationOnly, importHelpers, importsNotUsedAsValues, inlineSourceMap, inlineSources, mapRoot, newLine, noEmit, noEmitHelpers, noEmitOnError, outDir, outFile, preserveConstEnums, preserveValueImports, removeComments, sourceMap, sourceRoot and stripInternal

JavaScript支持相关

allowJs, checkJs and maxNodeModuleJsDepth

编辑器支持相关

disableSizeLimit and plugins

互操作约束相关

allowSyntheticDefaultImports, esModuleInterop, forceConsistentCasingInFileNames, isolatedModules, preserveSymlinks and verbatimModuleSyntax

向后兼容性相关

charset, keyofStringsOnly, noImplicitUseStrict, noStrictGenericChecks, out, suppressExcessPropertyErrors and suppressImplicitAnyIndexErrors

语言和运行环境相关

emitDecoratorMetadata, experimentalDecorators, jsx, jsxFactory, jsxFragmentFactory, jsxImportSource, lib, moduleDetection, noLib, reactNamespace, target and useDefineForClassFields

编译诊断相关

diagnostics, explainFiles, extendedDiagnostics, generateCpuProfile, listEmittedFiles, listFiles and traceResolution

工程相关

composite, disableReferencedProjectLoad, disableSolutionSearching, disableSourceOfProjectReferenceRedirect, incremental and tsBuildInfoFile

编译输出格式相关

noErrorTruncation, preserveWatchOutput and pretty

完整性相关

skipDefaultLibCheck and skipLibCheck

命令行相关

文件监控相关

assumeChangesOnlyAffectDirectDependencies

监控文件相关

配置项: watchOptions

watchFile, watchDirectory, fallbackPolling, synchronousWatchDirectory, excludeDirectories and excludeFiles

类型文件获取相关

enable, include, exclude and disableFilenameBasedTypeAcquisition

相关文章

网友评论

      本文标题:TSConfig文件详解02

      本文链接:https://www.haomeiwen.com/subject/gougqjtx.html