mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
487 B
TypeScript
32 lines
487 B
TypeScript
//// [tests/cases/compiler/ambientModuleExports.ts] ////
|
|
|
|
//// [ambientModuleExports.ts]
|
|
declare namespace Foo {
|
|
function a():void;
|
|
var b:number;
|
|
class C {}
|
|
}
|
|
|
|
Foo.a();
|
|
Foo.b;
|
|
var c = new Foo.C();
|
|
|
|
declare namespace Foo2 {
|
|
export function a(): void;
|
|
export var b: number;
|
|
export class C { }
|
|
}
|
|
|
|
Foo2.a();
|
|
Foo2.b;
|
|
var c2 = new Foo2.C();
|
|
|
|
//// [ambientModuleExports.js]
|
|
"use strict";
|
|
Foo.a();
|
|
Foo.b;
|
|
var c = new Foo.C();
|
|
Foo2.a();
|
|
Foo2.b;
|
|
var c2 = new Foo2.C();
|