7353cfaece
This is consistent with the behaviour of "export=" in --t=ES6 and in ambient contexts
27 lines
491 B
Plaintext
27 lines
491 B
Plaintext
=== tests/cases/compiler/server.d.ts ===
|
|
|
|
declare module "other" {
|
|
export class C { }
|
|
>C : C
|
|
}
|
|
|
|
declare module "server" {
|
|
import events = require("other"); // Ambient declaration, no error expected.
|
|
>events : typeof events
|
|
|
|
module S {
|
|
>S : typeof S
|
|
|
|
export var a: number;
|
|
>a : number
|
|
}
|
|
|
|
export = S; // Ambient declaration, no error expected.
|
|
>S : typeof S
|
|
}
|
|
|
|
=== tests/cases/compiler/client.ts ===
|
|
import {a} from "server";
|
|
>a : number
|
|
|