Files
tsgo/testdata/baselines/reference/submodule/compiler/augmentExportEquals1.errors.txt

25 lines
797 B
Plaintext

file2.ts(5,16): error TS2671: Cannot augment module './file1' because it resolves to a non-module entity.
file3.ts(3,8): error TS2503: Cannot find namespace 'x'.
==== file3.ts (1 errors) ====
import x = require("./file1");
import "./file2";
let a: x.A; // should not work
~
!!! error TS2503: Cannot find namespace 'x'.
==== file1.ts (0 errors) ====
var x = 1;
export = x;
==== file2.ts (1 errors) ====
import x = require("./file1");
// augmentation for './file1'
// should error since './file1' does not have namespace meaning
declare module "./file1" {
~~~~~~~~~
!!! error TS2671: Cannot augment module './file1' because it resolves to a non-module entity.
interface A { a }
}