Skip to content

Commit 07471a9

Browse files
authored
Merge pull request #129 from kabirsky/main
Fix type of create function for interfaces
2 parents 1dfb6bf + 1097a9e commit 07471a9

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)