tsbundle/test/ts_web/index.ts

19 lines
283 B
TypeScript
Raw Normal View History

2021-07-22 19:55:08 +00:00
const myConst: string = 'hello';
function sealed(constructor: Function) {
Object.seal(constructor);
Object.seal(constructor.prototype);
}
@sealed
class BugReport {
type = "report";
title: string;
constructor(t: string) {
this.title = t;
}
}
2019-04-30 07:44:46 +00:00
console.log(myConst);