Like laminating a document — you can read it but can't add new sticky notes to it.
A class decorator is a function that receives the class constructor. @sealed calls Object.seal() to prevent adding new properties to the class or prototype.
> @sealed applied to BugReport > Object.seal(BugReport) — no new static props > Object.seal(BugReport.prototype) — no new instance props
Like laminating a document — you can read it but can't add new sticky notes to it.
A class decorator is a function that receives the class constructor. @sealed calls Object.seal() to prevent adding new properties to the class or prototype.
> @sealed applied to BugReport > Object.seal(BugReport) — no new static props > Object.seal(BugReport.prototype) — no new instance props
Sign in to cast your vote
Sign in to share your feedback and join the discussion.