18 lines
No EOL
272 B
TypeScript
18 lines
No EOL
272 B
TypeScript
class C {
|
|
constructor(x: number) { }
|
|
foo() { }
|
|
bar() { }
|
|
static boo() { }
|
|
}
|
|
|
|
module C {
|
|
export var x = 1;
|
|
var y = 2;
|
|
}
|
|
module C {
|
|
export function foo() { }
|
|
function baz() { return ''; }
|
|
}
|
|
|
|
var c = new C(C.x);
|
|
c.foo = C.foo; |