19 lines
272 B
TypeScript
19 lines
272 B
TypeScript
|
declare module Foo {
|
||
|
function a():void;
|
||
|
var b:number;
|
||
|
class C {}
|
||
|
}
|
||
|
|
||
|
Foo.a();
|
||
|
Foo.b;
|
||
|
var c = new Foo.C();
|
||
|
|
||
|
declare module Foo2 {
|
||
|
export function a(): void;
|
||
|
export var b: number;
|
||
|
export class C { }
|
||
|
}
|
||
|
|
||
|
Foo2.a();
|
||
|
Foo2.b;
|
||
|
var c2 = new Foo2.C();
|