Skip to content

Commit

Permalink
sheet: Sheet.queue only accepts ValueCells
Browse files Browse the repository at this point in the history
  • Loading branch information
hbbio committed Mar 28, 2024
1 parent e6eadbc commit 37551db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sheet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -959,7 +959,7 @@ export class Sheet {
for (const id of ids) this._gc.add(id);
}

queue<T>(cell: number | AnyCell<T>, v: T | Promise<T>) {
this._queue.push([typeof cell === "number" ? cell : cell.id, v]);
queue<T>(cell: ValueCell<T>, v: T | Promise<T>) {
this._queue.push([cell.id, v]);
}
}

0 comments on commit 37551db

Please sign in to comment.