Skip to content

Commit eba63bc

Browse files
committed
done
1 parent b343685 commit eba63bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { ComponentType, FC, PropsWithChildren } from 'react';
22

3-
export type Composable = (composable: ComponentType<any>) => FC<any>;
3+
export type Composable = <P = {}>(component: ComponentType<P>) => FC<P>;
44

55
export const compose = <P extends object = any>(
66
...composables: [...Composable[], ComponentType<P>]

0 commit comments

Comments
 (0)