TypeScript/tests/cases/compiler/exportAssignedNamespaceIsVisibleInDeclarationEmit.ts

10 lines
231 B
TypeScript
Raw Normal View History

// @declaration: true
// @filename: thing.d.ts
declare namespace Foo {
export interface Bar {}
export function f(): Bar;
}
export = Foo;
// @filename: index.ts
import { f } from "./thing";
export const thing = f();