mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
19 lines
284 B
TypeScript
19 lines
284 B
TypeScript
//// [tests/cases/conformance/externalModules/umd2.ts] ////
|
|
|
|
//// [foo.d.ts]
|
|
export var x: number;
|
|
export function fn(): void;
|
|
export as namespace Foo;
|
|
|
|
//// [a.ts]
|
|
Foo.fn();
|
|
let x: Foo.Thing;
|
|
let y: number = x.n;
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
Foo.fn();
|
|
let x;
|
|
let y = x.n;
|