mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
35 lines
655 B
TypeScript
35 lines
655 B
TypeScript
//// [tests/cases/compiler/exportNamespaceDeclarationRetainsVisibility.ts] ////
|
|
|
|
//// [exportNamespaceDeclarationRetainsVisibility.ts]
|
|
namespace X {
|
|
interface A {
|
|
kind: 'a';
|
|
}
|
|
|
|
interface B {
|
|
kind: 'b';
|
|
}
|
|
|
|
export type C = A | B;
|
|
}
|
|
|
|
export = X;
|
|
|
|
//// [exportNamespaceDeclarationRetainsVisibility.js]
|
|
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
|
|
//// [exportNamespaceDeclarationRetainsVisibility.d.ts]
|
|
declare namespace X {
|
|
interface A {
|
|
kind: 'a';
|
|
}
|
|
interface B {
|
|
kind: 'b';
|
|
}
|
|
export type C = A | B;
|
|
export {};
|
|
}
|
|
export = X;
|