7353cfaece
This is consistent with the behaviour of "export=" in --t=ES6 and in ambient contexts
20 lines
385 B
TypeScript
20 lines
385 B
TypeScript
// @target: es6
|
|
|
|
// @filename: server.d.ts
|
|
declare module "other" {
|
|
export class C { }
|
|
}
|
|
|
|
declare module "server" {
|
|
import events = require("other"); // Ambient declaration, no error expected.
|
|
|
|
module S {
|
|
export var a: number;
|
|
}
|
|
|
|
export = S; // Ambient declaration, no error expected.
|
|
}
|
|
|
|
// @filename: client.ts
|
|
import {a} from "server";
|