chore: address comments and fix some other issues

This commit is contained in:
waterplea
2022-05-09 16:50:43 +03:00
parent 4becce1084
commit f3bc3832a6
7 changed files with 33 additions and 39 deletions

View File

@@ -5,7 +5,7 @@ import BTree from 'sorted-btree'
export interface StashEntry {
revision: Revision
undo: Operation[]
undo: Operation<unknown>[]
}
export class Store<T extends { [key: string]: any }> {
@@ -95,7 +95,7 @@ export class Store<T extends { [key: string]: any }> {
private applyRevisions (id: number): void {
let revision = this.stash.get(id)?.revision
while (revision) {
let undo: Operation[] = []
let undo: Operation<unknown>[] = []
let success = false
try {