CompilerOptions
ts
interface CompilerOptions {
allowJs?: boolean;
allowSyntheticDefaultImports?: boolean;
allowUmdGlobalAccess?: boolean;
allowUnreachableCode?: boolean;
allowUnusedLabels?: boolean;
alwaysStrict?: boolean;
baseUrl?: string;
charset?: string;
checkJs?: boolean;
composite?: boolean;
declaration?: boolean;
declarationDir?: string;
declarationMap?: boolean;
disableSizeLimit?: boolean;
disableSourceOfProjectReferenceRedirect?: boolean;
downlevelIteration?: boolean;
emitBOM?: boolean;
emitDeclarationOnly?: boolean;
emitDecoratorMetadata?: boolean;
esModuleInterop?: boolean;
experimentalDecorators?: boolean;
forceConsistentCasingInFileNames?: boolean;
importHelpers?: boolean;
inlineSourceMap?: boolean;
inlineSources?: boolean;
isolatedModules?: boolean;
jsx?: JsxEmit;
jsxFactory?: string;
keyofStringsOnly?: boolean;
lib?: string[];
locale?: string;
mapRoot?: string;
maxNodeModuleJsDepth?: number;
module?: ModuleKind;
moduleResolution?: ModuleResolutionKind;
newLine?: NewLineKind;
noEmit?: boolean;
noEmitHelpers?: boolean;
noEmitOnError?: boolean;
noErrorTruncation?: boolean;
noFallthroughCasesInSwitch?: boolean;
noImplicitAny?: boolean;
noImplicitReturns?: boolean;
noImplicitThis?: boolean;
noImplicitUseStrict?: boolean;
noLib?: boolean;
noResolve?: boolean;
noStrictGenericChecks?: boolean;
noUnusedLocals?: boolean;
noUnusedParameters?: boolean;
out?: string;
outDir?: string;
outFile?: string;
paths?: MapLike<string[]>;
preserveConstEnums?: boolean;
preserveSymlinks?: boolean;
project?: string;
reactNamespace?: string;
removeComments?: boolean;
resolveJsonModule?: boolean;
rootDir?: string;
rootDirs?: string[];
skipDefaultLibCheck?: boolean;
skipLibCheck?: boolean;
sourceMap?: boolean;
sourceRoot?: string;
strict?: boolean;
strictBindCallApply?: boolean;
strictFunctionTypes?: boolean;
strictNullChecks?: boolean;
strictPropertyInitialization?: boolean;
stripInternal?: boolean;
suppressExcessPropertyErrors?: boolean;
suppressImplicitAnyIndexErrors?: boolean;
target?: ScriptTarget;
traceResolution?: boolean;
typeRoots?: string[];
types?: string[];
useDefineForClassFields?: boolean;
[option: string]: CompilerOptionsValue | undefined;
}
快捷链接
PallowJs
PallowSyntheticDefaultImports
PallowUmdGlobalAccess
PallowUnreachableCode
PallowUnusedLabels
PalwaysStrict
PbaseUrl
Pcharset
PcheckJs
Pcomposite
Pdeclaration
PdeclarationDir
PdeclarationMap
PdisableSizeLimit
PdisableSourceOfProjectReferenceRedirect
PdownlevelIteration
PemitBOM
PemitDeclarationOnly
PemitDecoratorMetadata
PesModuleInterop
PexperimentalDecorators
PforceConsistentCasingInFileNames
PimportHelpers
PinlineSourceMap
PinlineSources
PisolatedModules
Pjsx
PjsxFactory
PkeyofStringsOnly
Plib
Plocale
PmapRoot
PmaxNodeModuleJsDepth
Pmodule
PmoduleResolution
PnewLine
PnoEmit
PnoEmitHelpers
PnoEmitOnError
PnoErrorTruncation
PnoFallthroughCasesInSwitch
PnoImplicitAny
PnoImplicitReturns
PnoImplicitThis
PnoImplicitUseStrict
PnoLib
PnoResolve
PnoStrictGenericChecks
PnoUnusedLocals
PnoUnusedParameters
Pout
PoutDir
PoutFile
Ppaths
PpreserveConstEnums
PpreserveSymlinks
Pproject
PreactNamespace
PremoveComments
PresolveJsonModule
ProotDir
ProotDirs
PskipDefaultLibCheck
PskipLibCheck
PsourceMap
PsourceRoot
Pstrict
PstrictBindCallApply
PstrictFunctionTypes
PstrictNullChecks
PstrictPropertyInitialization
PstripInternal
PsuppressExcessPropertyErrors
PsuppressImplicitAnyIndexErrors
Ptarget
PtraceResolution
PtypeRoots
Ptypes
PuseDefineForClassFields
allowJs
- 类型:
boolean
allowSyntheticDefaultImports
- 类型:
boolean
allowUmdGlobalAccess
- 类型:
boolean
allowUnreachableCode
- 类型:
boolean
allowUnusedLabels
- 类型:
boolean
alwaysStrict
- 类型:
boolean
baseUrl
- 类型:
string
charset
- 类型:
string
checkJs
- 类型:
boolean
composite
- 类型:
boolean
declaration
- 类型:
boolean
declarationDir
- 类型:
string
declarationMap
- 类型:
boolean
disableSizeLimit
- 类型:
boolean
disableSourceOfProjectReferenceRedirect
- 类型:
boolean
downlevelIteration
- 类型:
boolean
emitBOM
- 类型:
boolean
emitDeclarationOnly
- 类型:
boolean
emitDecoratorMetadata
- 类型:
boolean
esModuleInterop
- 类型:
boolean
experimentalDecorators
- 类型:
boolean
forceConsistentCasingInFileNames
- 类型:
boolean
importHelpers
- 类型:
boolean
inlineSourceMap
- 类型:
boolean
inlineSources
- 类型:
boolean
isolatedModules
- 类型:
boolean
jsx
- 类型:JsxEmit
jsxFactory
- 类型:
string
keyofStringsOnly
- 类型:
boolean
lib
- 类型:
string[]
locale
- 类型:
string
mapRoot
- 类型:
string
maxNodeModuleJsDepth
- 类型:
number
module
- 类型:ModuleKind
moduleResolution
newLine
- 类型:NewLineKind
noEmit
- 类型:
boolean
noEmitHelpers
- 类型:
boolean
noEmitOnError
- 类型:
boolean
noErrorTruncation
- 类型:
boolean
noFallthroughCasesInSwitch
- 类型:
boolean
noImplicitAny
- 类型:
boolean
noImplicitReturns
- 类型:
boolean
noImplicitThis
- 类型:
boolean
noImplicitUseStrict
- 类型:
boolean
noLib
- 类型:
boolean
noResolve
- 类型:
boolean
noStrictGenericChecks
- 类型:
boolean
noUnusedLocals
- 类型:
boolean
noUnusedParameters
- 类型:
boolean
out
- 类型:
string
outDir
- 类型:
string
outFile
- 类型:
string
paths
- 类型:MapLike
<string[]>
preserveConstEnums
- 类型:
boolean
preserveSymlinks
- 类型:
boolean
project
- 类型:
string
reactNamespace
- 类型:
string
removeComments
- 类型:
boolean
resolveJsonModule
- 类型:
boolean
rootDir
- 类型:
string
rootDirs
- 类型:
string[]
skipDefaultLibCheck
- 类型:
boolean
skipLibCheck
- 类型:
boolean
sourceMap
- 类型:
boolean
sourceRoot
- 类型:
string
strict
- 类型:
boolean
strictBindCallApply
- 类型:
boolean
strictFunctionTypes
- 类型:
boolean
strictNullChecks
- 类型:
boolean
strictPropertyInitialization
- 类型:
boolean
stripInternal
- 类型:
boolean
suppressExcessPropertyErrors
- 类型:
boolean
suppressImplicitAnyIndexErrors
- 类型:
boolean
target
- 类型:ScriptTarget
traceResolution
- 类型:
boolean
typeRoots
- 类型:
string[]
types
- 类型:
string[]
useDefineForClassFields
- 类型:
boolean