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've been trying to create a reusable client with automatic expired token refresh.
Unfortunately, when adding the QueryStringAddon something's getting broken with the typings and I can't create a global resolve with unauthorized.
I'm getting this TS error:
The 'this' context of type 'Wretch<QueryStringAddon, unknown, undefined>' is not assignable to method's 'this' of type 'QueryStringAddon & Wretch<QueryStringAddon, unknown, undefined>'.
Property 'query' is missing in type 'Wretch<QueryStringAddon, unknown, undefined>' but required in type 'QueryStringAddon'.(2684)
I've been trying to create a reusable client with automatic expired token refresh.
Unfortunately, when adding the
QueryStringAddon
something's getting broken with the typings and I can't create a globalresolve
withunauthorized
.I'm getting this TS error:
Here's a reproduction: https://stackblitz.com/edit/vitejs-vite-5per8h?file=src%2Fapi.ts
Would appreciate any help 🙏
The text was updated successfully, but these errors were encountered: