Skip to content

Commit

Permalink
Add generic data type to ScrollerGridProps
Browse files Browse the repository at this point in the history
  • Loading branch information
garryxiao committed Dec 6, 2024
1 parent b22c3bb commit d494709
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@etsoo/react",
"version": "1.8.13",
"version": "1.8.14",
"description": "TypeScript ReactJs UI Independent Framework",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/components/ScrollerGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
VariableSizeGridProps
} from "react-window";
import {
GridJsonData,
GridLoadDataProps,
GridLoader,
GridLoaderPartialStates,
Expand Down Expand Up @@ -44,7 +45,10 @@ export type ScrollerGridItemRendererProps<T> = Omit<
/**
* Scroller vertical grid props
*/
export type ScrollerGridProps<T extends object> = GridLoader<T> &
export type ScrollerGridProps<
T extends object,
P extends GridJsonData = GridLoadDataProps
> = GridLoader<T, P> &
Omit<VariableSizeGridProps<T>, "children" | "rowCount" | "rowHeight"> & {
/**
* Footer renderer
Expand Down

0 comments on commit d494709

Please sign in to comment.