tsbundle/test/ts_web/index.ts
2023-10-03 19:12:49 +02:00

25 lines
374 B
TypeScript

import * as smartdelay from '@push.rocks/smartdelay';
const myConst: string = 'hello';
await smartdelay.delayFor(1000);
function sealed(constructor: Function) {
Object.seal(constructor);
Object.seal(constructor.prototype);
}
@sealed
class BugReport {
type = 'report';
title: string;
constructor(t: string) {
this.title = t;
}
}
console.log(myConst);