Closed vitorcamachoo closed 3 months ago
What is the type of data
?
I am getting FormData
as type.
This feels like a Typescript config issue, see https://dev.to/deciduously/formdata-in-typescript-24cl.
Adding the following to your tsconfig.json
could help in getting it to understand FormData
"lib": [
"dom",
"dom.iterable",
"esnext"
],
+1
+1
What version of
kubb
is running?What platform is your computer?
MacOS
What version of external packages are you using(
@tanstack-query
,MSW
,React
,Vue
, ...)What steps can reproduce the bug?
When generating the client for an endpoint that supports form data, when appending the values to the FormData, it throws the following Typescript error:
Kub configuration:
How often does this bug happen?
Every time
What is the expected behavior?
It should not throw Typescript errors.
Swagger/OpenAPI file?
Additional information
No response