Skip to content

Commit

Permalink
fix(utils): @types/react-virtualized-auto-sizer is required as a depe…
Browse files Browse the repository at this point in the history
…ndency

The types are exposed in withSize.
  • Loading branch information
markmcdowell committed Jul 19, 2020
1 parent df18500 commit fa9e5ed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions package-lock.json

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

1 change: 1 addition & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"watch": "tsc -p tsconfig.json --watch --preserveWatchOutput"
},
"dependencies": {
"@types/react-virtualized-auto-sizer": "^1.0.0",
"react-virtualized-auto-sizer": "^1.0.2"
},
"peerDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/utils/src/withSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ interface WithSizeProps {
readonly height: number;
}

export { AutoSizerProps };

export const withSize = (props?: Omit<AutoSizerProps, "children">) => {
return <TProps extends WithSizeProps>(OriginalComponent: React.ComponentClass<TProps>) => {
return class WithSize extends React.Component<Omit<TProps, "width" | "height">> {
Expand Down

0 comments on commit fa9e5ed

Please sign in to comment.