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
Since #3549 (comment) made it clear that post/put/patch calls have to use objects (or probable also stringified versions of those), the TypeScript type should reflect this fact, to avoid more problems/bug reports regarding this.
So maybe instead of currently doing this (index.t.ds)
A clear and concise description of what you expected to happen.
Environment
Axios Version 0.21.0
Side note:
I also wonder why the decision is made, since if I would send out an application/json request, I would be able to send everything as payload that is or can be stringified as JSON (which also includes just a boolean (e.g. false) or a number (e.g. 0).
The text was updated successfully, but these errors were encountered:
This issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue.
Since #3549 (comment) made it clear that post/put/patch calls have to use objects (or probable also stringified versions of those), the TypeScript type should reflect this fact, to avoid more problems/bug reports regarding this.
So maybe instead of currently doing this (
index.t.ds
)it is useful to do
Expected behavior
A clear and concise description of what you expected to happen.
Environment
Side note:
I also wonder why the decision is made, since if I would send out an
application/json
request, I would be able to send everything as payload that is or can be stringified as JSON (which also includes just a boolean (e.g.false
) or a number (e.g.0
).The text was updated successfully, but these errors were encountered: