antfu/reactivue

Make 'useSetup' second argument and createSetup argument optional.

Dav3rs opened this issue · 2 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.

antfu commented

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

antfu commented

Thanks!