mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
15 lines
344 B
TypeScript
15 lines
344 B
TypeScript
// @module: commonjs
|
|
// @declaration: true
|
|
// @filename: a.ts
|
|
export type Foo = { x: string };
|
|
export namespace Bar {
|
|
export interface Baz { y: number }
|
|
}
|
|
export = { a: 1, b: "hello" };
|
|
// @filename: b.ts
|
|
import a = require("./a");
|
|
const c1 = a.a;
|
|
const c2 = a.b;
|
|
let v1: a.Foo = { x: "test" };
|
|
let v2: a.Bar.Baz = { y: 42 };
|