We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29575ca commit 8e93147Copy full SHA for 8e93147
src/withViewport.tsx
@@ -7,6 +7,6 @@ import { Sizes } from './interfaces/sizes';
7
8
export function withViewport(options?: Options) {
9
return <T,>(WrappedComponent: React.ComponentType<T & Sizes>) => (
10
- props: T
11
- ) => <WrappedComponent {...props} {...useViewport(options)} />;
+ props: Omit<T, keyof ReturnType<typeof useViewport>>
+ ) => <WrappedComponent {...props as T} {...useViewport(options)} />;
12
}
0 commit comments