21 lines
348 B
TypeScript
21 lines
348 B
TypeScript
//// [classExpressions.ts]
|
|
interface A {}
|
|
let x = class B implements A {
|
|
prop: number;
|
|
onStart(): void {
|
|
}
|
|
func = () => {
|
|
}
|
|
};
|
|
|
|
//// [classExpressions.js]
|
|
var x = (function () {
|
|
function B() {
|
|
this.func = function () {
|
|
};
|
|
}
|
|
B.prototype.onStart = function () {
|
|
};
|
|
return B;
|
|
}());
|