Skip to content

Commit

Permalink
fix(attrs): accept partial props in attrs (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelchucks authored Jan 18, 2024
1 parent d926eb1 commit 026441b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type FirstLevelTemplate<
*/
attrs: <TProps = undefined>(
attrs:
| (Omit<React.ComponentProps<TComponent>, "className"> &
| (Omit<Partial<React.ComponentProps<TComponent>>, "className"> &
Record<string, any>)
| ((
props: ResultProps<TComponent, TProps, TExtraProps, TCompose>,
Expand Down

0 comments on commit 026441b

Please sign in to comment.