Skip to content

Commit

Permalink
fix: DataView options should be optional (TypeScript)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Jan 9, 2024
1 parent 8098db8 commit feb154c
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 @@ -134,7 +134,7 @@ export class SlickDataView<TData extends SlickDataItem = any> implements CustomD
onSelectedRowIdsChanged: SlickEvent_<OnSelectedRowIdsChangedEventArgs>;
onSetItemsCalled: SlickEvent_<OnSetItemsCalledEventArgs>;

constructor(options: Partial<DataViewOption>, protected externalPubSub?: BasePubSub) {
constructor(options?: Partial<DataViewOption>, protected externalPubSub?: BasePubSub) {
this.onBeforePagingInfoChanged = new SlickEvent<PagingInfo>('onBeforePagingInfoChanged', externalPubSub);
this.onGroupExpanded = new SlickEvent<OnGroupExpandedEventArgs>('onGroupExpanded', externalPubSub);
this.onGroupCollapsed = new SlickEvent<OnGroupCollapsedEventArgs>('onGroupCollapsed', externalPubSub);
Expand Down

0 comments on commit feb154c

Please sign in to comment.