Skip to content

Commit

Permalink
fix: invalid argument type for setSelectedIds() method
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Sep 19, 2023
1 parent 4f57275 commit 330e0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slick.dataview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1437,7 +1437,7 @@ export class SlickDataView<TData extends SlickDataItem = any> 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<number | string>, options: Partial<{ isRowBeingAdded: boolean; shouldTriggerEvent: boolean; applyRowSelectionToGrid: boolean; }>) {
setSelectedIds(selectedIds: Array<number | string>, options?: Partial<{ isRowBeingAdded: boolean; shouldTriggerEvent: boolean; applyRowSelectionToGrid: boolean; }>) {
let isRowBeingAdded = options?.isRowBeingAdded;
const shouldTriggerEvent = options?.shouldTriggerEvent;
const applyRowSelectionToGrid = options?.applyRowSelectionToGrid;
Expand Down

0 comments on commit 330e0e3

Please sign in to comment.