• 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:: Add comment
147
148Input::
149//// [/user/username/projects/myproject/main.ts]
150export const x: string = 10;
151// SomeComment
152
153
154tsc --w
155Output::
156>> Screen clear
157[12:00:31 AM] Starting compilation in watch mode...
158
159user/username/projects/myproject/main.ts:1:14 - error TS2322: Type 'number' is not assignable to type 'string'.
160
1611 export const x: string = 10;
162               ~
163
164[12:00:35 AM] Found 1 error. Watching for file changes.
165
166
167
168Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"]
169Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
170Program structureReused: Not
171Program files::
172/a/lib/lib.d.ts
173/user/username/projects/myproject/main.ts
174/user/username/projects/myproject/other.ts
175
176Semantic diagnostics in builder refreshed for::
177/user/username/projects/myproject/main.ts
178
179Shape signatures in builder refreshed for::
180/user/username/projects/myproject/main.ts (computed .d.ts)
181
182PolledWatches::
183/user/username/projects/myproject/node_modules/@types:
184  {"pollingInterval":500}
185
186FsWatches::
187/user/username/projects/myproject/tsconfig.json:
188  {}
189/user/username/projects/myproject/main.ts:
190  {}
191/user/username/projects/myproject/other.ts:
192  {}
193/a/lib/lib.d.ts:
194  {}
195
196FsWatchesRecursive::
197/user/username/projects/myproject:
198  {}
199
200exitCode:: ExitStatus.undefined
201
202//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
203{"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":"-5691975201-export const x: string = 10;\n// SomeComment","signature":"-10161843860-export declare const x: string;\n"},"-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"}
204
205//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
206{
207  "program": {
208    "fileNames": [
209      "../../../../a/lib/lib.d.ts",
210      "./main.ts",
211      "./other.ts"
212    ],
213    "fileInfos": {
214      "../../../../a/lib/lib.d.ts": {
215        "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; }",
216        "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; }",
217        "affectsGlobalScope": true
218      },
219      "./main.ts": {
220        "version": "-5691975201-export const x: string = 10;\n// SomeComment",
221        "signature": "-10161843860-export declare const x: string;\n"
222      },
223      "./other.ts": {
224        "version": "-13729955264-export const y = 10;",
225        "signature": "-13729955264-export const y = 10;"
226      }
227    },
228    "options": {
229      "composite": true,
230      "noEmitOnError": true
231    },
232    "referencedMap": {},
233    "exportedModulesMap": {},
234    "semanticDiagnosticsPerFile": [
235      "../../../../a/lib/lib.d.ts",
236      [
237        "./main.ts",
238        [
239          {
240            "file": "./main.ts",
241            "start": 13,
242            "length": 1,
243            "code": 2322,
244            "category": 1,
245            "messageText": "Type 'number' is not assignable to type 'string'."
246          }
247        ]
248      ],
249      "./other.ts"
250    ],
251    "affectedFilesPendingEmit": [
252      [
253        "./main.ts",
254        "Full"
255      ],
256      [
257        "./other.ts",
258        "Full"
259      ]
260    ],
261    "emitSignatures": [
262      "./main.ts",
263      "./other.ts"
264    ]
265  },
266  "version": "FakeTSVersion",
267  "size": 1020
268}
269
270
271Change:: Fix error
272
273Input::
274//// [/user/username/projects/myproject/main.ts]
275export const x = 10;
276
277
278tsc --w
279Output::
280>> Screen clear
281[12:00:42 AM] Starting compilation in watch mode...
282
283[12:00:54 AM] Found 0 errors. Watching for file changes.
284
285
286
287Program root files: ["/user/username/projects/myproject/main.ts","/user/username/projects/myproject/other.ts"]
288Program options: {"composite":true,"noEmitOnError":true,"configFilePath":"/user/username/projects/myproject/tsconfig.json"}
289Program structureReused: Not
290Program files::
291/a/lib/lib.d.ts
292/user/username/projects/myproject/main.ts
293/user/username/projects/myproject/other.ts
294
295Semantic diagnostics in builder refreshed for::
296/user/username/projects/myproject/main.ts
297
298Shape signatures in builder refreshed for::
299/user/username/projects/myproject/main.ts (computed .d.ts)
300
301PolledWatches::
302/user/username/projects/myproject/node_modules/@types:
303  {"pollingInterval":500}
304
305FsWatches::
306/user/username/projects/myproject/tsconfig.json:
307  {}
308/user/username/projects/myproject/main.ts:
309  {}
310/user/username/projects/myproject/other.ts:
311  {}
312/a/lib/lib.d.ts:
313  {}
314
315FsWatchesRecursive::
316/user/username/projects/myproject:
317  {}
318
319exitCode:: ExitStatus.undefined
320
321//// [/user/username/projects/myproject/tsconfig.tsbuildinfo]
322{"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],"latestChangedDtsFile":"./other.d.ts"},"version":"FakeTSVersion"}
323
324//// [/user/username/projects/myproject/tsconfig.tsbuildinfo.readable.baseline.txt]
325{
326  "program": {
327    "fileNames": [
328      "../../../../a/lib/lib.d.ts",
329      "./main.ts",
330      "./other.ts"
331    ],
332    "fileInfos": {
333      "../../../../a/lib/lib.d.ts": {
334        "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; }",
335        "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; }",
336        "affectsGlobalScope": true
337      },
338      "./main.ts": {
339        "version": "-10726455937-export const x = 10;",
340        "signature": "-6821242887-export declare const x = 10;\n"
341      },
342      "./other.ts": {
343        "version": "-13729955264-export const y = 10;",
344        "signature": "-7152472870-export declare const y = 10;\n"
345      }
346    },
347    "options": {
348      "composite": true,
349      "noEmitOnError": true
350    },
351    "referencedMap": {},
352    "exportedModulesMap": {},
353    "semanticDiagnosticsPerFile": [
354      "../../../../a/lib/lib.d.ts",
355      "./main.ts",
356      "./other.ts"
357    ],
358    "latestChangedDtsFile": "./other.d.ts"
359  },
360  "version": "FakeTSVersion",
361  "size": 898
362}
363
364//// [/user/username/projects/myproject/main.js]
365"use strict";
366exports.__esModule = true;
367exports.x = void 0;
368exports.x = 10;
369
370
371//// [/user/username/projects/myproject/main.d.ts]
372export declare const x = 10;
373
374
375//// [/user/username/projects/myproject/other.js]
376"use strict";
377exports.__esModule = true;
378exports.y = void 0;
379exports.y = 10;
380
381
382//// [/user/username/projects/myproject/other.d.ts]
383export declare const y = 10;
384
385
386