2023-10-03 19:12:49 +02:00
|
|
|
import * as smartdelay from '@push.rocks/smartdelay';
|
|
|
|
|
2021-07-22 21:55:08 +02:00
|
|
|
const myConst: string = 'hello';
|
|
|
|
|
2023-10-03 19:12:49 +02:00
|
|
|
await smartdelay.delayFor(1000);
|
|
|
|
|
2021-07-22 21:55:08 +02:00
|
|
|
function sealed(constructor: Function) {
|
|
|
|
Object.seal(constructor);
|
|
|
|
Object.seal(constructor.prototype);
|
|
|
|
}
|
|
|
|
|
|
|
|
@sealed
|
|
|
|
class BugReport {
|
2022-03-14 16:32:12 +01:00
|
|
|
type = 'report';
|
2021-07-22 21:55:08 +02:00
|
|
|
title: string;
|
|
|
|
|
|
|
|
constructor(t: string) {
|
|
|
|
this.title = t;
|
|
|
|
}
|
|
|
|
}
|
2019-04-30 09:44:46 +02:00
|
|
|
|
2023-10-03 19:12:49 +02:00
|
|
|
|
|
|
|
|
2019-04-30 09:44:46 +02:00
|
|
|
console.log(myConst);
|