(item: T)
| 24 | readonly orderedItems: Signal<T[]> = this._sortedItems.asReadonly(); |
| 25 | |
| 26 | register(item: T) { |
| 27 | if (!this._items.has(item)) { |
| 28 | this._items.add(item); |
| 29 | this._sortedItems.set(this._getSortedItems()); |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | unregister(item: T) { |
| 34 | if (this._items.has(item)) { |