Files

12 KiB

currentDirectory::/home/src/workspaces/project
useCaseSensitiveFileNames::true
Input::
//// [/home/src/workspaces/project/a.ts] *new*
export const a = class { private p = 10; };
//// [/home/src/workspaces/project/b.ts] *new*
export const b = 10;
//// [/home/src/workspaces/project/tsconfig.json] *new*
{
"compilerOptions": {
"declaration": true,
"incremental": false
}
}
 
tsgo --noCheck
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/tslibs/TS/Lib/lib.es2025.full.d.ts] *Lib*
/// <reference no-default-lib="true"/>
interface Boolean {}
interface Function {}
interface CallableFunction {}
interface NewableFunction {}
interface IArguments {}
interface Number { toExponential: any; }
interface Object {}
interface RegExp {}
interface String { charAt: any; }
interface Array<T> { length: number; [n: number]: T; }
interface ReadonlyArray<T> {}
interface SymbolConstructor {
(desc?: string | number): symbol;
for(name: string): symbol;
readonly toStringTag: symbol;
}
declare var Symbol: SymbolConstructor;
interface Symbol {
readonly [Symbol.toStringTag]: string;
}
declare const console: { log(msg: any): void; };
//// [/home/src/workspaces/project/a.js] *new*
export const a = class {
p = 10;
};
 
//// [/home/src/workspaces/project/b.d.ts] *new*
export declare const b = 10;
 
//// [/home/src/workspaces/project/b.js] *new*
export const b = 10;
 
 
 
 
Edit [0]:: no change
 
tsgo --noCheck
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [1]:: Fix `a` error with noCheck
//// [/home/src/workspaces/project/a.ts] *modified*
export const a = "hello";
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *new*
export declare const a = "hello";
//// [/home/src/workspaces/project/a.js] *modified*
export const a = "hello";
 
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [2]:: no change
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [3]:: No Change run with checking
 
tsgo
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [4]:: No Change run with checking
 
tsgo
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [5]:: no change
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [6]:: Introduce error with noCheck
//// [/home/src/workspaces/project/a.ts] *modified*
export const a = class { private p = 10; };
 
tsgo --noCheck
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/workspaces/project/a.js] *modified*
export const a = class {
p = 10;
};
 
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [7]:: no change
 
tsgo --noCheck
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [8]:: No Change run with checking
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [9]:: Fix `a` error with noCheck
//// [/home/src/workspaces/project/a.ts] *modified*
export const a = "hello";
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *modified*
export const a = "hello";
 
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [10]:: No Change run with checking
 
tsgo
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
 
 
 
Edit [11]:: Add file with error
//// [/home/src/workspaces/project/c.ts] *new*
export const c: number = "hello";
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'.
 
1 export const c: number = "hello";
~
 
 
Found 1 error in c.ts:1
 
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *new*
export declare const c: number;
 
//// [/home/src/workspaces/project/c.js] *new*
export const c = "hello";
 
 
 
 
Edit [12]:: Introduce error with noCheck
//// [/home/src/workspaces/project/a.ts] *modified*
export const a = class { private p = 10; };
 
tsgo --noCheck
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
a.ts:1:14 - error TS4094: Property 'p' of exported anonymous class type may not be private or protected.
 
1 export const a = class { private p = 10; };
~
 
a.ts:1:14 - Add a type annotation to the variable a.
1 export const a = class { private p = 10; };
~
 
 
Found 1 error in a.ts:1
 
//// [/home/src/workspaces/project/a.js] *modified*
export const a = class {
p = 10;
};
 
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/c.js] *rewrite with same content*
 
 
 
Edit [13]:: Fix `a` error with noCheck
//// [/home/src/workspaces/project/a.ts] *modified*
export const a = "hello";
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *modified*
export const a = "hello";
 
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/c.js] *rewrite with same content*
 
 
 
Edit [14]:: No Change run with checking
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'.
 
1 export const c: number = "hello";
~
 
 
Found 1 error in c.ts:1
 
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/c.js] *rewrite with same content*
 
 
 
Edit [15]:: no change
 
tsgo --noCheck
ExitStatus:: Success
Output::
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/c.js] *rewrite with same content*
 
 
 
Edit [16]:: No Change run with checking
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsGenerated
Output::
c.ts:1:14 - error TS2322: Type 'string' is not assignable to type 'number'.
 
1 export const c: number = "hello";
~
 
 
Found 1 error in c.ts:1
 
//// [/home/src/workspaces/project/a.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/a.js] *rewrite with same content*
//// [/home/src/workspaces/project/b.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/b.js] *rewrite with same content*
//// [/home/src/workspaces/project/c.d.ts] *rewrite with same content*
//// [/home/src/workspaces/project/c.js] *rewrite with same content*