()
| 188 | } |
| 189 | |
| 190 | clear(): void { |
| 191 | notifyManager.batch(() => { |
| 192 | this.#mutations.forEach((mutation) => { |
| 193 | this.notify({ type: 'removed', mutation }) |
| 194 | }) |
| 195 | this.#mutations.clear() |
| 196 | this.#scopes.clear() |
| 197 | }) |
| 198 | } |
| 199 | |
| 200 | getAll(): Array<Mutation> { |
| 201 | return Array.from(this.#mutations) |