25 lines
374 B
TypeScript
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);
|