Skip to content

Commit

Permalink
fix(utils): re-exporting AutoSizerProps
Browse files Browse the repository at this point in the history
Needed to avoid installing @types/react-virtualized-auto-sizer in
packages that use the library.
  • Loading branch information
markmcdowell committed Jul 19, 2020
1 parent 0a9dd0c commit 3615c6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/utils/src/withSize.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ 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 3615c6c

Please sign in to comment.