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
You know, come to think of it, there might be a way to infer which headers you passed in, but it may come with drawbacks and have some rough edges. But by this library’s design, static types are static types, and don’t respond to dynamic input. In order to get this to work, we’d have to modify your schema types from its original version, to no longer require those specific headers on every path.
I’d be open to a PR if someone wanted to take a crack at overriding the base schema types based on the options passed to createClient, but it may be a little tricky
Description
Since I passed the headers in
createClient
, GET shouldn't complain about required headers again.I was able to reproduce it here: https://stackblitz.com/edit/vitejs-vite-vgdvfq?file=src%2Fmain.ts
Running
tsc
on the terminal will outputReproduction
How can this be reproduced / when did the error occur? Does the issue occur in a specific browser, or all browsers?
Expected result
(in case it’s not obvious)
Checklist
The text was updated successfully, but these errors were encountered: