Skip to content

Commit 1097a9e

Browse files
committed
Fix type of create function for interfaces
1 parent 1dfb6bf commit 1097a9e

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
@@ -377,7 +377,7 @@ export function useModal(modal?: any, args?: any): any {
377377
],
378378
);
379379
}
380-
export const create = <P extends Record<string, unknown>>(
380+
export const create = <P extends {}>(
381381
Comp: React.ComponentType<P>,
382382
): React.FC<P & NiceModalHocProps> => {
383383
return ({ defaultVisible, keepMounted, id, ...props }) => {

0 commit comments

Comments
 (0)