chore: type fix (#4071)

This commit is contained in:
lumix
2024-11-15 11:56:25 +08:00
committed by GitHub
parent 74b6e2b4a3
commit 8366613835
@@ -113,6 +113,15 @@ export class WorkbookSelectionModel extends Disposable {
return this._getCurrentSelections();
}
/**
* @deprecated use `getSelectionsOfWorksheet` instead.
* @param sheetId
* @returns
*/
getSelectionOfWorksheet(sheetId: string): ISelectionWithStyle[] {
return this.getSelectionsOfWorksheet(sheetId);
}
getSelectionsOfWorksheet(sheetId: string): ISelectionWithStyle[] {
if (!this._worksheetSelections.has(sheetId)) {
this._worksheetSelections.set(sheetId, []);