mirror of
https://github.com/Start9Labs/patch-db.git
synced 2026-03-30 12:01:57 +00:00
chore: address comments and fix some other issues
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user