You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not really sure if it's bug but I believe it to be a type bug.
Description / Observed Behavior
In my current project Nextjs 14.1.4, Typescript 5. I have successfully setup swr with global swrConfig where I have added the fetcher and all is perfectly working as expected, except the type error Type error: Expected 2-3 arguments, but got 1. that I'm getting since I am not passing the fetcher option.
Is there how I can extend the type declaration to make fetcher optional?
Thanks for the good work, SWR is a great tool.
Note: The code is working as expected, just the type.
The text was updated successfully, but these errors were encountered:
info: v2.2.5
Bug report
I am not really sure if it's bug but I believe it to be a type bug.
Description / Observed Behavior
In my current project Nextjs 14.1.4, Typescript 5. I have successfully setup
swr
with global swrConfig where I have added the fetcher and all is perfectly working as expected, except the type errorType error: Expected 2-3 arguments, but got 1.
that I'm getting since I am not passing the fetcher option.Is there how I can extend the type declaration to make fetcher optional?
Thanks for the good work, SWR is a great tool.
Note: The code is working as expected, just the type.
The text was updated successfully, but these errors were encountered: