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.

fix: fix type error

Wenzhao Hu983a323acde1
diff --git a/packages/sheets-crosshair-highlight/src/views/widgets/crosshair-highlight.render-controller.ts b/packages/sheets-crosshair-highlight/src/views/widgets/crosshair-highlight.render-controller.ts
index ae976e577f..d291b8971e 100644
--- a/packages/sheets-crosshair-highlight/src/views/widgets/crosshair-highlight.render-controller.ts
+++ b/packages/sheets-crosshair-highlight/src/views/widgets/crosshair-highlight.render-controller.ts
@@ -45,7 +45,7 @@ export class SheetCrosshairHighlightRenderController extends Disposable implemen
this._initRenderListener();
}
- private _transformSelection(selectionData: Nullable<ISelectionWithStyle[]>, sheet: Worksheet): void {
+ private _transformSelection(selectionData: Readonly<Nullable<ISelectionWithStyle[]>>, sheet: Worksheet): void {
if (!selectionData) {
return;
}