(cls: { prototype: T })
| 340 | } |
| 341 | |
| 342 | public register(cls: { prototype: T }): void { |
| 343 | if (this.registered) { |
| 344 | throw new Error(`Property ${this.name} already registered.`); |
| 345 | } |
| 346 | this.registered = true; |
| 347 | Object.defineProperty(cls.prototype, this.name, this); |
| 348 | } |
| 349 | |
| 350 | public isSet(instance: T): boolean { |
| 351 | return this.key in instance; |
no outgoing calls
no test coverage detected