mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
360 B
TypeScript
24 lines
360 B
TypeScript
// @allowJs: true
|
|
// @checkJs: true
|
|
// @declaration: true
|
|
// @emitDeclarationOnly: true
|
|
// @outDir: out
|
|
|
|
// @filename: main.js
|
|
export class Foo {
|
|
static {
|
|
this.bar = 10;
|
|
}
|
|
|
|
constructor() {
|
|
this.baz = "hello";
|
|
}
|
|
}
|
|
|
|
export class Bar {
|
|
constructor() {
|
|
this.x = 42;
|
|
this.y = true;
|
|
}
|
|
}
|