Files
tsgo/testdata/baselines/reference/tsbuildWatch/programUpdates/declarationEmitErrors-when-file-with-no-error-changes.js

16 KiB

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
[HH:MM:SS AM] File change detected. Starting incremental compilation...
 
app/fileWithError.ts:1:12 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export var myClassWithError = class {
~~~~~~~~~~~~~~~~
 
app/fileWithError.ts:1:12 - Add a type annotation to the variable myClassWithError.
1 export var myClassWithError = class {
~~~~~~~~~~~~~~~~
 
[HH:MM:SS AM] Found 1 error. Watching for file changes.
 
//// [/user/username/projects/solution/app/fileWithoutError.d.ts] *modified*
export declare class myClass2 {
}
 
//// [/user/username/projects/solution/app/fileWithoutError.js] *modified*
export class myClass2 {
}
 
//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo] *modified*
{"version":"FakeTSVersion","root":[[2,3]],"fileNames":["lib.es2025.full.d.ts","./fileWithError.ts","./fileWithoutError.ts"],"fileInfos":[{"version":"8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };","affectsGlobalScope":true,"impliedNodeFormat":1},"02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};",{"version":"4494620e0f3a6379be16c2477b86b919-export class myClass2 { }","signature":"cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n","impliedNodeFormat":1}],"options":{"composite":true},"emitDiagnosticsPerFile":[[2,[{"pos":11,"end":27,"code":4094,"category":1,"messageKey":"Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094","messageArgs":["p"],"relatedInformation":[{"pos":11,"end":27,"code":9027,"category":1,"messageKey":"Add_a_type_annotation_to_the_variable_0_9027","messageArgs":["myClassWithError"]}]}]]],"latestChangedDtsFile":"./fileWithoutError.d.ts","emitSignatures":[2]}
//// [/user/username/projects/solution/app/tsconfig.tsbuildinfo.readable.baseline.txt] *modified*
{
"version": "FakeTSVersion",
"root": [
{
"files": [
"./fileWithError.ts",
"./fileWithoutError.ts"
],
"original": [
2,
3
]
}
],
"fileNames": [
"lib.es2025.full.d.ts",
"./fileWithError.ts",
"./fileWithoutError.ts"
],
"fileInfos": [
{
"fileName": "lib.es2025.full.d.ts",
"version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };",
"signature": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };",
"affectsGlobalScope": true,
"impliedNodeFormat": "CommonJS",
"original": {
"version": "8859c12c614ce56ba9a18e58384a198f-/// <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> {}\ninterface SymbolConstructor {\n (desc?: string | number): symbol;\n for(name: string): symbol;\n readonly toStringTag: symbol;\n}\ndeclare var Symbol: SymbolConstructor;\ninterface Symbol {\n readonly [Symbol.toStringTag]: string;\n}\ndeclare const console: { log(msg: any): void; };",
"affectsGlobalScope": true,
"impliedNodeFormat": 1
}
},
{
"fileName": "./fileWithError.ts",
"version": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};",
"signature": "02dc54a766c51fbc368b69a386e90b57-export var myClassWithError = class {\n tags() { }\n private p = 12\n};",
"impliedNodeFormat": "CommonJS"
},
{
"fileName": "./fileWithoutError.ts",
"version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }",
"signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n",
"impliedNodeFormat": "CommonJS",
"original": {
"version": "4494620e0f3a6379be16c2477b86b919-export class myClass2 { }",
"signature": "cdd06be46566b8da2e1a2b5b161ff551-export declare class myClass2 {\n}\n",
"impliedNodeFormat": 1
}
}
],
"options": {
"composite": true
},
"emitDiagnosticsPerFile": [
[
"./fileWithError.ts",
[
{
"pos": 11,
"end": 27,
"code": 4094,
"category": 1,
"messageKey": "Property_0_of_exported_anonymous_class_type_may_not_be_private_or_protected_4094",
"messageArgs": [
"p"
],
"relatedInformation": [
{
"pos": 11,
"end": 27,
"code": 9027,
"category": 1,
"messageKey": "Add_a_type_annotation_to_the_variable_0_9027",
"messageArgs": [
"myClassWithError"
]
}
]
}
]
]
],
"latestChangedDtsFile": "./fileWithoutError.d.ts",
"emitSignatures": [
{
"file": "./fileWithError.ts",
"original": 2
}
],
"size": 1656
}
 
Watch Registrations::
Directory watches::
/home/src/tslibs/TS/Lib
/user/username/projects/solution
/user/username/projects/solution/app (recursive)
app/tsconfig.json::
SemanticDiagnostics::
*refresh* /user/username/projects/solution/app/fileWithoutError.ts
Signatures::
(computed .d.ts) /user/username/projects/solution/app/fileWithoutError.ts