We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d395ff commit 798f78fCopy full SHA for 798f78f
src/types.tsx
@@ -60,12 +60,11 @@ interface WithClassNames {
60
};
61
}
62
63
-export type RemoveScrollType = ForwardRefExoticComponent<
64
- IRemoveScrollProps & RefAttributes<HTMLElement>
+type RefForwarded<T> = ForwardRefExoticComponent<
+ T & RefAttributes<HTMLElement>
65
> &
66
WithClassNames;
67
68
-export type RemoveScrollUIType = ForwardRefExoticComponent<
69
- IRemoveScrollUIProps & RefAttributes<HTMLElement>
70
-> &
71
- WithClassNames;
+export type RemoveScrollType = RefForwarded<IRemoveScrollProps>;
+
+export type RemoveScrollUIType = RefForwarded<IRemoveScrollUIProps>;
0 commit comments