Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typescript/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用tsc命令编译typescript代码时的额外文件_Typescript_Tsc_Tsconfig - Fatal编程技术网

使用tsc命令编译typescript代码时的额外文件

使用tsc命令编译typescript代码时的额外文件,typescript,tsc,tsconfig,Typescript,Tsc,Tsconfig,我创建了一个新的节点开发环境,使用命令安装了typescript npm模块 我创建了一个app.ts文件 app.ts 我试着用 tsc --extendedDiagnostics app.ts 我得到了以下输出 Files: 6 Lines: 24817 Nodes: 111373 Identifiers: 41046 Symbols:

我创建了一个新的节点开发环境,使用命令安装了typescript npm模块

我创建了一个app.ts文件 app.ts

我试着用

tsc --extendedDiagnostics app.ts
我得到了以下输出

Files:                         6
Lines:                     24817
Nodes:                    111373
Identifiers:               41046
Symbols:                   27913
Types:                      8269
Memory used:              78854K
Assignability cache size:  33122
Identity cache size:           2
Subtype cache size:            0
I/O Read time:             0.01s
Parse time:                0.46s
Program time:              0.48s
Bind time:                 0.31s
Check time:                1.23s
transformTime time:        0.01s
commentTime time:          0.00s
I/O Write time:            0.00s
printTime time:            0.01s
Emit time:                 0.02s
Total time:                2.04s
请注意,此处的文件数为6。但我只编译了一个文件,即app.ts
有人能解释一下这里还有哪些额外的文件吗?

一个猜测,但我想说,这个文件数不仅包括你的
.ts
,还包括默认的
.d.ts

Files:                         6
Lines:                     24817
Nodes:                    111373
Identifiers:               41046
Symbols:                   27913
Types:                      8269
Memory used:              78854K
Assignability cache size:  33122
Identity cache size:           2
Subtype cache size:            0
I/O Read time:             0.01s
Parse time:                0.46s
Program time:              0.48s
Bind time:                 0.31s
Check time:                1.23s
transformTime time:        0.01s
commentTime time:          0.00s
I/O Write time:            0.00s
printTime time:            0.01s
Emit time:                 0.02s
Total time:                2.04s