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