Files

2.7 KiB

currentDirectory::/user/username/projects/noEmitOnError
useCaseSensitiveFileNames::true
Input::
//// [/user/username/projects/noEmitOnError/shared/types/db.ts] *new*
export interface A {
name: string;
}
//// [/user/username/projects/noEmitOnError/src/main.ts] *new*
import { A } from "../shared/types/db";
const a = {
lastName: 'sdsd'
;
//// [/user/username/projects/noEmitOnError/src/other.ts] *new*
console.log("hi");
export { }
//// [/user/username/projects/noEmitOnError/tsconfig.json] *new*
{
"compilerOptions": {
"outDir": "./dev-build",
"declaration": false,
"incremental": false,
"noEmitOnError": true,
},
}
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
src/main.ts:4:1 - error TS1005: ',' expected.
 
4 ;
~
 
 
Found 1 error in src/main.ts:4
 
//// [/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; };
 
 
 
Edit [0]:: no change
 
tsgo
ExitStatus:: DiagnosticsPresent_OutputsSkipped
Output::
src/main.ts:4:1 - error TS1005: ',' expected.
 
4 ;
~
 
 
Found 1 error in src/main.ts:4
 
 
 
 
Edit [1]:: Fix error
//// [/user/username/projects/noEmitOnError/src/main.ts] *modified*
import { A } from "../shared/types/db";
const a = {
lastName: 'sdsd'
};
 
tsgo
ExitStatus:: Success
Output::
//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *new*
export {};
 
//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *new*
const a = {
lastName: 'sdsd'
};
export {};
 
//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *new*
console.log("hi");
export {};
 
 
 
 
Edit [2]:: no change
 
tsgo
ExitStatus:: Success
Output::
//// [/user/username/projects/noEmitOnError/dev-build/shared/types/db.js] *rewrite with same content*
//// [/user/username/projects/noEmitOnError/dev-build/src/main.js] *rewrite with same content*
//// [/user/username/projects/noEmitOnError/dev-build/src/other.js] *rewrite with same content*