39 lines
694 B
TypeScript
39 lines
694 B
TypeScript
|
// @target: es5
|
||
|
// @module: commonjs
|
||
|
// @declaration: true
|
||
|
|
||
|
export class C1 {
|
||
|
C1() { } // has to be the same as the class name
|
||
|
|
||
|
bar() {
|
||
|
return function (t: typeof C1) {
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class C2 {
|
||
|
C2: any // has to be the same as the class name
|
||
|
|
||
|
bar() {
|
||
|
return function (t: typeof C2) {
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class C3 {
|
||
|
get C3() { return 0; } // has to be the same as the class name
|
||
|
|
||
|
bar() {
|
||
|
return function (t: typeof C3) {
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export class C4 {
|
||
|
set C4(v) { } // has to be the same as the class name
|
||
|
|
||
|
bar() {
|
||
|
return function (t: typeof C4) {
|
||
|
};
|
||
|
}
|
||
|
}
|