1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
Use 'outFile' instead.
!!! error TS5101: Option 'out' is deprecated and will stop functioning in TypeScript 5.5. Specify compilerOption '"ignoreDeprecations": "5.0"' to silence this error.
!!! error TS5101: Use 'outFile' instead.
==== tests/cases/compiler/m1.ts (0 errors) ====
export class Cls {
}
==== tests/cases/compiler/m2.ts (0 errors) ====
import {Cls} from "./m1";
(<any>Cls.prototype).foo = function() { return 1; };
(<any>Cls.prototype).bar = function() { return "1"; };
declare module "./m1" {
interface Cls {
foo(): number;
}
}
declare module "./m1" {
interface Cls {
bar(): string;
}
}
==== tests/cases/compiler/m3.ts (0 errors) ====
export class C1 { x: number }
export class C2 { x: string }
==== tests/cases/compiler/m4.ts (0 errors) ====
import {Cls} from "./m1";
import {C1, C2} from "./m3";
(<any>Cls.prototype).baz1 = function() { return undefined };
(<any>Cls.prototype).baz2 = function() { return undefined };
declare module "./m1" {
interface Cls {
baz1(): C1;
}
}
declare module "./m1" {
interface Cls {
baz2(): C2;
}
}
==== tests/cases/compiler/test.ts (0 errors) ====
import { Cls } from "./m1";
import "m2";
import "m4";
let c: Cls;
c.foo().toExponential();
c.bar().toLowerCase();
c.baz1().x.toExponential();
c.baz2().x.toLowerCase();
|