10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
|
// @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();
|