mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
429 B
TypeScript
24 lines
429 B
TypeScript
//// [tests/cases/compiler/augmentExportEquals2.ts] ////
|
|
|
|
//// [file1.ts]
|
|
function foo() {}
|
|
export = foo;
|
|
|
|
//// [file2.ts]
|
|
import x = require("./file1");
|
|
|
|
// should error since './file1' does not have namespace meaning
|
|
declare module "./file1" {
|
|
interface A { a }
|
|
}
|
|
|
|
//// [file3.ts]
|
|
|
|
//// [file3.ts]
|
|
import x = require("./file1");
|
|
import "./file2";
|
|
let a: x.A; // should not work
|
|
|
|
//// [file3.js]
|
|
"use strict";
|