Skip to content

Commit

Permalink
[GridAutoSizer] Fix onResize property type conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
vizv committed Nov 11, 2022
1 parent 6e0c787 commit 2c72e42
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"@types/mocha": "^10.0.0",
"@types/node": "^18.11.9",
"@types/prettier": "^2.7.1",
"@types/react": "^18.0.24",
"@types/react": "^18.0.25",
"@types/react-dom": "^18.0.8",
"@types/requestidlecallback": "^0.3.5",
"@types/sinon": "^10.0.13",
Expand Down
3 changes: 2 additions & 1 deletion packages/grid/x-data-grid/src/components/GridAutoSizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export interface AutoSizerSize {
// Credit to https://github.com/bvaughn/react-virtualized/blob/master/source/AutoSizer/AutoSizer.js
// for the sources.

export interface AutoSizerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
export interface AutoSizerProps
extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children' | 'onResize'> {
/**
* Function responsible for rendering children.
* @param {AutoSizerSize} size The grid's size.
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3501,10 +3501,10 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^18.0.24":
version "18.0.24"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.24.tgz#2f79ed5b27f08d05107aab45c17919754cc44c20"
integrity sha512-wRJWT6ouziGUy+9uX0aW4YOJxAY0bG6/AOk5AW5QSvZqI7dk6VBIbXvcVgIw/W5Jrl24f77df98GEKTJGOLx7Q==
"@types/react@*", "@types/react@^18.0.25":
version "18.0.25"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.25.tgz#8b1dcd7e56fe7315535a4af25435e0bb55c8ae44"
integrity sha512-xD6c0KDT4m7n9uD4ZHi02lzskaiqcBxf4zi+tXZY98a04wvc0hi/TcCPC2FOESZi51Nd7tlUeOJY8RofL799/g==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down

0 comments on commit 2c72e42

Please sign in to comment.