From 330e0e3e6f233439532804cafccf65e5781a9dd3 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Tue, 19 Sep 2023 00:38:57 -0400 Subject: [PATCH] fix: invalid argument type for setSelectedIds() method --- src/slick.dataview.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slick.dataview.ts b/src/slick.dataview.ts index 39363196..1766b96e 100644 --- a/src/slick.dataview.ts +++ b/src/slick.dataview.ts @@ -1437,7 +1437,7 @@ export class SlickDataView implements CustomD * - `shouldTriggerEvent`: defaults to true, should we trigger `onSelectedRowIdsChanged` event * - `applyRowSelectionToGrid`: defaults to true, should we apply the row selections to the grid in the UI */ - setSelectedIds(selectedIds: Array, options: Partial<{ isRowBeingAdded: boolean; shouldTriggerEvent: boolean; applyRowSelectionToGrid: boolean; }>) { + setSelectedIds(selectedIds: Array, options?: Partial<{ isRowBeingAdded: boolean; shouldTriggerEvent: boolean; applyRowSelectionToGrid: boolean; }>) { let isRowBeingAdded = options?.isRowBeingAdded; const shouldTriggerEvent = options?.shouldTriggerEvent; const applyRowSelectionToGrid = options?.applyRowSelectionToGrid;