We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description
Basically - types are getting a NonNullable<> somewhere and I believe they shouldn't
NonNullable<>
Reproduction This was tested on version 0.9.3
type TestPaths = { '/v1/test': { /** @description Start a process flow */ post: { /** @description Body */ requestBody: { content: { 'application/json': { test: boolean }; }; }; responses: { /** @description Response */ 200: { content: { 'application/json': { test: string | null }; }; }; }; }; }; }; async function testFunction() { const client = createClient<TestPaths>({ baseUrl: '' }); const result = await client .POST('/v1/test', { body: { test: true } }) .then((x) => x.data); type Result = typeof result; }
Expected result
Result should be { test: string | null }, not { test: string }
Result
{ test: string | null }
{ test: string }
Checklist
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
Basically - types are getting a
NonNullable<>
somewhere and I believe they shouldn'tReproduction
This was tested on version 0.9.3
Expected result
Result
should be{ test: string | null }
, not{ test: string }
Checklist
The text was updated successfully, but these errors were encountered: