Skip to content

Commit 9cb840c

Browse files
feat(attrs): enable autocomplete for props (#39)
1 parent 7d47ce5 commit 9cb840c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.tsx

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

0 commit comments

Comments
 (0)