tsconfig.json
File Inclusion
exclude
extends
files
references
typeAcquisition
Project Options
composite
.d.ts
を自動生成する
型検査のみをして、 .js
は生成しない
これ
true
にしてたら、
target
とか、
jsx
とか指定するの無意味ってこと
#?? .js
を出力するディレクトリを指定
未指定の場合は、元の .ts
と同じ場所に生成する
outFile
plugins
removeComments
rootDir
Module Resolution
Source Maps
Experimental
Command Line
pretty
Watch Options
fallbackPolling
watchDirectory
watchFile
Advanced
assumeChangesOnlyAffectDirectDependencies
charset
declarationDir
diagnostics
disableReferencedProjectLoad
disableSizeLimit
disableSolutionSearching
disableSourceOfProjectReferenceRedirect
emitBOM
emitDeclarationOnly
explainFiles
extendedDiagnostics
generateCpuProfile
型だけimportしてる時は、 import type .. from ..
を使うことを強制する
"error"
を指定した時の話
jsxFactory
jsxFragmentFactory
jsxImportSource
keyofStringsOnly
listEmittedFiles
listFiles
maxNodeModuleJsDepth
newLine
noEmitHelpers
noEmitOnError
noErrorTruncation
noImplicitUseStrict
noLib
noResolve
noStrictGenericChecks
out
preserveConstEnums
reactNamespace
.json
をimportできるようになる
.json
のimport時に自動で型をつける
skipDefaultLibCheck
stripInternal
suppressExcessPropertyErrors
suppressImplicitAnyIndexErrors
traceResolution
useDefineForClassFields
exModuleInterop
ゆるゆるのtsconfig
参考