Skip to content

Commit 798f78f

Browse files
committed
refactor types
1 parent 8d395ff commit 798f78f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/types.tsx

+5-6
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ interface WithClassNames {
6060
};
6161
}
6262

63-
export type RemoveScrollType = ForwardRefExoticComponent<
64-
IRemoveScrollProps & RefAttributes<HTMLElement>
63+
type RefForwarded<T> = ForwardRefExoticComponent<
64+
T & RefAttributes<HTMLElement>
6565
> &
6666
WithClassNames;
6767

68-
export type RemoveScrollUIType = ForwardRefExoticComponent<
69-
IRemoveScrollUIProps & RefAttributes<HTMLElement>
70-
> &
71-
WithClassNames;
68+
export type RemoveScrollType = RefForwarded<IRemoveScrollProps>;
69+
70+
export type RemoveScrollUIType = RefForwarded<IRemoveScrollUIProps>;

0 commit comments

Comments
 (0)