Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore: type fix (#4071)

lumix83666138358a
diff --git a/packages/sheets/src/services/selections/selection-data-model.ts b/packages/sheets/src/services/selections/selection-data-model.ts
index b884c4a467..ddc81707b1 100644
--- a/packages/sheets/src/services/selections/selection-data-model.ts
+++ b/packages/sheets/src/services/selections/selection-data-model.ts
@@ -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, []);