Skip to content

Commit 026441b

Browse files
fix(attrs): accept partial props in attrs (#41)
1 parent d926eb1 commit 026441b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type FirstLevelTemplate<
5555
*/
5656
attrs: <TProps = undefined>(
5757
attrs:
58-
| (Omit<React.ComponentProps<TComponent>, "className"> &
58+
| (Omit<Partial<React.ComponentProps<TComponent>>, "className"> &
5959
Record<string, any>)
6060
| ((
6161
props: ResultProps<TComponent, TProps, TExtraProps, TCompose>,

0 commit comments

Comments
 (0)