mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
442 B
TypeScript
24 lines
442 B
TypeScript
//// [tests/cases/compiler/es6ImportEqualsDeclaration2.ts] ////
|
|
|
|
//// [server.d.ts]
|
|
declare module "other" {
|
|
export class C { }
|
|
}
|
|
|
|
declare module "server" {
|
|
import events = require("other"); // Ambient declaration, no error expected.
|
|
|
|
namespace S {
|
|
export var a: number;
|
|
}
|
|
|
|
export = S; // Ambient declaration, no error expected.
|
|
}
|
|
|
|
//// [client.ts]
|
|
import {a} from "server";
|
|
|
|
|
|
//// [client.js]
|
|
export {};
|