mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
799 B
Plaintext
32 lines
799 B
Plaintext
//// [tests/cases/compiler/es6ImportEqualsDeclaration2.ts] ////
|
|
|
|
=== server.d.ts ===
|
|
declare module "other" {
|
|
>"other" : Symbol("other", Decl(server.d.ts, 0, 0))
|
|
|
|
export class C { }
|
|
>C : Symbol(C, Decl(server.d.ts, 0, 24))
|
|
}
|
|
|
|
declare module "server" {
|
|
>"server" : Symbol("server", Decl(server.d.ts, 2, 1))
|
|
|
|
import events = require("other"); // Ambient declaration, no error expected.
|
|
>events : Symbol(events, Decl(server.d.ts, 4, 25))
|
|
|
|
namespace S {
|
|
>S : Symbol(S, Decl(server.d.ts, 5, 37))
|
|
|
|
export var a: number;
|
|
>a : Symbol(a, Decl(server.d.ts, 8, 18))
|
|
}
|
|
|
|
export = S; // Ambient declaration, no error expected.
|
|
>S : Symbol(S, Decl(server.d.ts, 5, 37))
|
|
}
|
|
|
|
=== client.ts ===
|
|
import {a} from "server";
|
|
>a : Symbol(a, Decl(client.ts, 0, 8))
|
|
|