• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Input::
2//// [/user/username/projects/myproject/tsconfig.json]
3{"compilerOptions":{"composite":true,"noEmitOnError":true}}
4
5//// [/user/username/projects/myproject/main.ts]
6export const x: string = 10;
7
8//// [/user/username/projects/myproject/other.ts]
9export const y = 10;
10
11//// [/a/lib/lib.d.ts]
12/// <reference no-default-lib="true"/>
13interface Boolean {}
14interface Function {}
15interface CallableFunction {}
16interface NewableFunction {}
17interface IArguments {}
18interface Number { toExponential: any; }
19interface Object {}
20interface RegExp {}
21interface String { charAt: any; }
22interface Array<T> { length: number; [n: number]: T; }
23
24
25tsc --w
26Output::
27>> Screen clear
28[12:00:23 AM] Starting compilation in watch mode...
29
30user/username/projects/myproject/main.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'.
31
321 export const x: string = 10;
33               ~
34
35[12:00:26 AM] Found 1 error. Watching for file changes.
36
37
38
39Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"]
40Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
41Program structureReused: Not
42Program files::
43/a/lib/lib.d.ts
44/user/username/projects/myproject/main.ts
45/user/username/projects/myproject/other.ts
46
47Semantic diagnostics in builder refreshed for::
48/a/lib/lib.d.ts
49/user/username/projects/myproject/main.ts
50/user/username/projects/myproject/other.ts
51
52Shape signatures in builder refreshed for::
53/a/lib/lib.d.ts (used version)
54/user/username/projects/myproject/main.ts (used version)
55/user/username/projects/myproject/other.ts (used version)
56
57PolledWatches::
58/user/username/projects/myproject/node_modules/@types:
59  {"pollingInterval":500}
60
61FsWatches::
62/user/username/projects/myproject/tsconfig.json:
63  {}
64/user/username/projects/myproject/main.ts:
65  {}
66/user/username/projects/myproject/other.ts:
67  {}
68/a/lib/lib.d.ts:
69  {}
70
71FsWatchesRecursive::
72/user/username/projects/myproject:
73  {}
74
75exitCode:: ExitStatus.undefined
76
77//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
78{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},"-8089124208-export const x: string = 10;","-13729955264-export const y = 10;"],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,[2,[{"file":"./main.ts","start":13,"length":1,"code":2322,"category":1,"messageText":"Type 'number' is not assignable to type 'string'."}]],3],"affectedFilesPendingEmit":[[2,1],[3,1]],"emitSignatures":[2,3]},"version":"FakeTSVersion"}
79
80//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
81{
82  "program": {
83    "fileNames": [
84      "../../../../a/lib/lib.d.ts",
85      "./main.ts",
86      "./other.ts"
87    ],
88    "fileInfos": {
89      "../../../../a/lib/lib.d.ts": {
90        "version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
91        "signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
92        "affectsGlobalScope": true
93      },
94      "./main.ts": {
95        "version": "-8089124208-export const x: string = 10;",
96        "signature": "-8089124208-export const x: string = 10;"
97      },
98      "./other.ts": {
99        "version": "-13729955264-export const y = 10;",
100        "signature": "-13729955264-export const y = 10;"
101      }
102    },
103    "options": {
104      "composite": true,
105      "noEmitOnError": true
106    },
107    "referencedMap": {},
108    "exportedModulesMap": {},
109    "semanticDiagnosticsPerFile": [
110      "../../../../a/lib/lib.d.ts",
111      [
112        "./main.ts",
113        [
114          {
115            "file": "./main.ts",
116            "start": 13,
117            "length": 1,
118            "code": 2322,
119            "category": 1,
120            "messageText": "Type 'number' is not assignable to type 'string'."
121          }
122        ]
123      ],
124      "./other.ts"
125    ],
126    "affectedFilesPendingEmit": [
127      [
128        "./main.ts",
129        "Full"
130      ],
131      [
132        "./other.ts",
133        "Full"
134      ]
135    ],
136    "emitSignatures": [
137      "./main.ts",
138      "./other.ts"
139    ]
140  },
141  "version": "FakeTSVersion",
142  "size": 931
143}
144
145
146Change:: Fix error
147
148Input::
149//// [/user/username/projects/myproject/main.ts]
150export const x = 10;
151
152
153Output::
154>> Screen clear
155[12:00:32 AM] Starting compilation in watch mode...
156
157[12:00:40 AM] Found 0 errors. Watching for file changes.
158
159
160
161Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"]
162Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
163Program structureReused: Not
164Program files::
165/a/lib/lib.d.ts
166/user/username/projects/myproject/main.ts
167/user/username/projects/myproject/other.ts
168
169Semantic diagnostics in builder refreshed for::
170/user/username/projects/myproject/main.ts
171
172Shape signatures in builder refreshed for::
173/user/username/projects/myproject/main.ts (computed .d.ts)
174
175PolledWatches::
176/user/username/projects/myproject/node_modules/@types:
177  {"pollingInterval":500}
178
179FsWatches::
180/user/username/projects/myproject/tsconfig.json:
181  {}
182/user/username/projects/myproject/main.ts:
183  {}
184/user/username/projects/myproject/other.ts:
185  {}
186/a/lib/lib.d.ts:
187  {}
188
189FsWatchesRecursive::
190/user/username/projects/myproject:
191  {}
192
193exitCode:: ExitStatus.undefined
194
195//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
196{"program":{"fileNames":["../../../../a/lib/lib.d.ts","./main.ts","./other.ts"],"fileInfos":[{"version":"-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }","affectsGlobalScope":true},{"version":"-10726455937-export const x = 10;","signature":"-6821242887-export declare const x = 10;\n"},{"version":"-13729955264-export const y = 10;","signature":"-7152472870-export declare const y = 10;\n"}],"options":{"composite":true,"noEmitOnError":true},"referencedMap":[],"exportedModulesMap":[],"semanticDiagnosticsPerFile":[1,2,3],"affectedFilesPendingEmit":[[2,1],[3,1]],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"}
197
198//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
199{
200  "program": {
201    "fileNames": [
202      "../../../../a/lib/lib.d.ts",
203      "./main.ts",
204      "./other.ts"
205    ],
206    "fileInfos": {
207      "../../../../a/lib/lib.d.ts": {
208        "version": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
209        "signature": "-7698705165-/// <reference no-default-lib=\"true\"/>\ninterface Boolean {}\ninterface Function {}\ninterface CallableFunction {}\ninterface NewableFunction {}\ninterface IArguments {}\ninterface Number { toExponential: any; }\ninterface Object {}\ninterface RegExp {}\ninterface String { charAt: any; }\ninterface Array<T> { length: number; [n: number]: T; }",
210        "affectsGlobalScope": true
211      },
212      "./main.ts": {
213        "version": "-10726455937-export const x = 10;",
214        "signature": "-6821242887-export declare const x = 10;\n"
215      },
216      "./other.ts": {
217        "version": "-13729955264-export const y = 10;",
218        "signature": "-7152472870-export declare const y = 10;\n"
219      }
220    },
221    "options": {
222      "composite": true,
223      "noEmitOnError": true
224    },
225    "referencedMap": {},
226    "exportedModulesMap": {},
227    "semanticDiagnosticsPerFile": [
228      "../../../../a/lib/lib.d.ts",
229      "./main.ts",
230      "./other.ts"
231    ],
232    "affectedFilesPendingEmit": [
233      [
234        "./main.ts",
235        "Full"
236      ],
237      [
238        "./other.ts",
239        "Full"
240      ]
241    ],
242    "latestChangedDtsFile": "./other.d.ts"
243  },
244  "version": "FakeTSVersion",
245  "size": 939
246}
247
248//// [/user/username/projects/myproject/main.d.ts]
249export declare const x = 10;
250
251
252//// [/user/username/projects/myproject/other.d.ts]
253export declare const y = 10;
254
255
256