19 lines
283 B
TypeScript
19 lines
283 B
TypeScript
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;
|
|
}
|
|
}
|
|
|
|
console.log(myConst);
|