ecyrbe / zodios-react

React hooks for zodios
MIT License
64 stars 12 forks source link

TypeScript error on excess properties for `configOptions` #472

Open piedrahitapablo opened 7 months ago

piedrahitapablo commented 7 months ago

Hi, I hope you're great, I was just working with this and spent almost an hour trying to find why refetchInterval was not working for me, and turns out it was an issue similar to the one in #270, I was doing:

const site = useGetSiteById({ params: { id }, options: { refetchInterval: ... } });

and it took some time to get to the error since there's no TypeScript error for excess properties in configOptions, is it possible to make ts error on these cases?

Happy to help with a PR if you could give me some pointers.

Thanks!