(collection: keyof T, data: T[C])
| 167 | } |
| 168 | |
| 169 | insert(collection: keyof T, data: T[C]) { |
| 170 | if (!(collection in this.collections)) { |
| 171 | this.collections[collection] = new Map(); |
| 172 | } |
| 173 | this.changesBuffer[collection].set(data.id, data); |
| 174 | } |
| 175 | |
| 176 | update(collection: keyof T, id: string, data: Partial<T[C]>) { |
| 177 | if (!(collection in this.collections)) { |
no test coverage detected