antfu / reactivue

🙊 Use Vue Composition API in React components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make 'useSetup' second argument and createSetup argument optional.

Dav3rs opened this issue · comments

Hi, a little thing, If I have a component with no props, then I don't have a prop argument for the useSetup, but typescript is requiring it and I use an empty object instead. And the same for 'createSetup', It is forcing me to give it an empty object or something.

Make sense. Would you mind to send a PR? Thanks

Thanks!