@@ -43,7 +43,7 @@ exitCode:: ExitStatus.Success
43
43
44
44
45
45
//// [/src/project/class1.d.ts]
46
- declare const a = 1 ;
46
+ declare const a: MagicNumber ;
47
47
48
48
49
49
//// [/src/project/class1.js]
@@ -75,7 +75,7 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi
75
75
76
76
77
77
//// [/src/project/tsconfig.tsbuildinfo]
78
- { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./class1.ts" , "./constants.ts" , "./reexport.ts" , "./types.d.ts" ] , "fileInfos" :[ { "version" :"3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true } , { "version" :"4085502068-const a: MagicNumber = 1;\nconsole.log(a);" , "signature" :"-3664763344-declare const a = 1;\n" , "affectsGlobalScope" :true } , { "version" :"-2659799048-export default 1;" , "signature" :"-183154784-declare const _default: 1;\nexport default _default;\n" } , { "version" :"-1476032387-export { default as ConstantNumber } from \"./constants\"" , "signature" :"-1081498782-export { default as ConstantNumber } from \"./constants\";\n" } , { "version" :"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber" , "affectsGlobalScope" :true } ] , "root" :[ [ 2 , 5 ] ] , "options" :{ "composite" :true } , "fileIdsList" :[ [ 3 ] , [ 4 ] ] , "referencedMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "exportedModulesMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "semanticDiagnosticsPerFile" :[ 1 , 2 , 3 , 4 , 5 ] , "latestChangedDtsFile" :"./reexport.d.ts" } , "version" :"FakeTSVersion" }
78
+ { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./class1.ts" , "./constants.ts" , "./reexport.ts" , "./types.d.ts" ] , "fileInfos" :[ { "version" :"3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true } , { "version" :"4085502068-const a: MagicNumber = 1;\nconsole.log(a);" , "signature" :"-2630403130-declare const a: MagicNumber;\n" , "affectsGlobalScope" :true } , { "version" :"-2659799048-export default 1;" , "signature" :"-183154784-declare const _default: 1;\nexport default _default;\n" } , { "version" :"-1476032387-export { default as ConstantNumber } from \"./constants\"" , "signature" :"-1081498782-export { default as ConstantNumber } from \"./constants\";\n" } , { "version" :"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber" , "affectsGlobalScope" :true } ] , "root" :[ [ 2 , 5 ] ] , "options" :{ "composite" :true } , "fileIdsList" :[ [ 3 ] , [ 4 ] ] , "referencedMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "exportedModulesMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "semanticDiagnosticsPerFile" :[ 1 , 2 , 3 , 4 , 5 ] , "latestChangedDtsFile" :"./reexport.d.ts" } , "version" :"FakeTSVersion" }
79
79
80
80
//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt]
81
81
{
@@ -108,11 +108,11 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi
108
108
"./class1.ts" : {
109
109
"original" : {
110
110
"version" : "4085502068-const a: MagicNumber = 1;\nconsole.log(a);" ,
111
- "signature" : "-3664763344 -declare const a = 1 ;\n" ,
111
+ "signature" : "-2630403130 -declare const a: MagicNumber ;\n" ,
112
112
"affectsGlobalScope" : true
113
113
} ,
114
114
"version" : "4085502068-const a: MagicNumber = 1;\nconsole.log(a);" ,
115
- "signature" : "-3664763344 -declare const a = 1 ;\n" ,
115
+ "signature" : "-2630403130 -declare const a: MagicNumber ;\n" ,
116
116
"affectsGlobalScope" : true
117
117
} ,
118
118
"./constants.ts" : {
@@ -184,7 +184,7 @@ Object.defineProperty(exports, "ConstantNumber", { enumerable: true, get: functi
184
184
"latestChangedDtsFile" : "./reexport.d.ts"
185
185
} ,
186
186
"version" : "FakeTSVersion" ,
187
- "size" : 1395
187
+ "size" : 1404
188
188
}
189
189
190
190
@@ -209,10 +209,6 @@ Found 1 error in src/project/class1.ts[90m:1[0m
209
209
exitCode :: ExitStatus . DiagnosticsPresent_OutputsGenerated
210
210
211
211
212
- //// [/src/project/class1.d.ts]
213
- declare const a = 2 ;
214
-
215
-
216
212
//// [/src/project/constants.d.ts]
217
213
declare const _default : 2 ;
218
214
export default _default ;
@@ -226,7 +222,7 @@ exports.default = 2;
226
222
227
223
//// [/src/project/reexport.js] file written with same contents
228
224
//// [/src/project/tsconfig.tsbuildinfo]
229
- { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./class1.ts" , "./constants.ts" , "./reexport.ts" , "./types.d.ts" ] , "fileInfos" :[ { "version" :"3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true } , { "version" :"4085502068-const a: MagicNumber = 1;\nconsole.log(a);" , "signature" :"-3664762255-declare const a = 2;\n" , "affectsGlobalScope" :true } , { "version" :"-2659799015-export default 2;" , "signature" :"-10876795135-declare const _default: 2;\nexport default _default;\n" } , { "version" :"-1476032387-export { default as ConstantNumber } from \"./constants\"" , "signature" :"-1081498782-export { default as ConstantNumber } from \"./constants\";\n" } , { "version" :"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber" , "affectsGlobalScope" :true } ] , "root" :[ [ 2 , 5 ] ] , "options" :{ "composite" :true } , "fileIdsList" :[ [ 3 ] , [ 4 ] ] , "referencedMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "exportedModulesMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "semanticDiagnosticsPerFile" :[ 1 , [ 2 , [ { "file" :"./class1.ts" , "start" :6 , "length" :1 , "code" :2322 , "category" :1 , "messageText" :"Type '1' is not assignable to type '2'." } ] ] , 3 , 4 , 5 ] , "latestChangedDtsFile" :"./class1.d.ts" } , "version" :"FakeTSVersion" }
225
+ { "program" :{ "fileNames" :[ "../../lib/lib.d.ts" , "./class1.ts" , "./constants.ts" , "./reexport.ts" , "./types.d.ts" ] , "fileInfos" :[ { "version" :"3858781397-/// <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; }\ninterface ReadonlyArray<T> {}\ndeclare const console: { log(msg: any): void; };" , "affectsGlobalScope" :true } , { "version" :"4085502068-const a: MagicNumber = 1;\nconsole.log(a);" , "signature" :"-2630403130-declare const a: MagicNumber;\n" , "affectsGlobalScope" :true } , { "version" :"-2659799015-export default 2;" , "signature" :"-10876795135-declare const _default: 2;\nexport default _default;\n" } , { "version" :"-1476032387-export { default as ConstantNumber } from \"./constants\"" , "signature" :"-1081498782-export { default as ConstantNumber } from \"./constants\";\n" } , { "version" :"2093085814-type MagicNumber = typeof import('./reexport').ConstantNumber" , "affectsGlobalScope" :true } ] , "root" :[ [ 2 , 5 ] ] , "options" :{ "composite" :true } , "fileIdsList" :[ [ 3 ] , [ 4 ] ] , "referencedMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "exportedModulesMap" :[ [ 4 , 1 ] , [ 5 , 2 ] ] , "semanticDiagnosticsPerFile" :[ 1 , [ 2 , [ { "file" :"./class1.ts" , "start" :6 , "length" :1 , "code" :2322 , "category" :1 , "messageText" :"Type '1' is not assignable to type '2'." } ] ] , 3 , 4 , 5 ] , "latestChangedDtsFile" :"./constants.d.ts" } , "version" :"FakeTSVersion" }
230
226
231
227
//// [/src/project/tsconfig.tsbuildinfo.readable.baseline.txt]
232
228
{
@@ -259,11 +255,11 @@ exports.default = 2;
259
255
"./class1.ts" : {
260
256
"original" : {
261
257
"version" : "4085502068-const a: MagicNumber = 1;\nconsole.log(a);" ,
262
- "signature" : "-3664762255 -declare const a = 2 ;\n" ,
258
+ "signature" : "-2630403130 -declare const a: MagicNumber ;\n" ,
263
259
"affectsGlobalScope" : true
264
260
} ,
265
261
"version" : "4085502068-const a: MagicNumber = 1;\nconsole.log(a);" ,
266
- "signature" : "-3664762255 -declare const a = 2 ;\n" ,
262
+ "signature" : "-2630403130 -declare const a: MagicNumber ;\n" ,
267
263
"affectsGlobalScope" : true
268
264
} ,
269
265
"./constants.ts" : {
@@ -344,9 +340,9 @@ exports.default = 2;
344
340
"./reexport.ts" ,
345
341
"./types.d.ts"
346
342
] ,
347
- "latestChangedDtsFile" : "./class1 .d.ts"
343
+ "latestChangedDtsFile" : "./constants .d.ts"
348
344
} ,
349
345
"version" : "FakeTSVersion" ,
350
- "size" : 1524
346
+ "size" : 1536
351
347
}
352
348
0 commit comments