Skip to content

Commit

Permalink
feat(attrs): enable autocomplete for props (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuelchucks authored Jan 16, 2024
1 parent 7d47ce5 commit 9cb840c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ type FirstLevelTemplate<
*/
attrs: <TProps = undefined>(
attrs:
| Record<string, any>
| (Omit<React.ComponentProps<TComponent>, "className"> &
Record<string, any>)
| ((
props: ResultProps<TComponent, TProps, TExtraProps, TCompose>,
) => Record<string, any>),
Expand Down

0 comments on commit 9cb840c

Please sign in to comment.