Skip to content

Commit

Permalink
fix: adjust to change Key type in @types/react
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlkoch authored and simonseyock committed May 6, 2024
1 parent a182130 commit 261ea52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Grid/FeatureGrid/FeatureGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ interface OwnProps {
/**
* Callback function, that will be called if the selection changes.
*/
onRowSelectionChange?: (selectedRowKeys: Array<number | string>, selectedFeatures: OlFeature<OlGeometry>[]) => void;
onRowSelectionChange?: (selectedRowKeys: Array<number | string | bigint>,
selectedFeatures: OlFeature<OlGeometry>[]) => void;
}

interface FeatureGridState {
Expand Down Expand Up @@ -565,7 +566,7 @@ export class FeatureGrid extends React.Component<FeatureGridProps, FeatureGridSt
* @param key The row key to obtain the feature from.
* @return The feature candidate.
*/
getFeatureFromRowKey = (key: number | string): OlFeature<OlGeometry> => {
getFeatureFromRowKey = (key: number | string | bigint): OlFeature<OlGeometry> => {
const {
features,
keyFunction
Expand Down

0 comments on commit 261ea52

Please sign in to comment.