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
Readable
reply.send
5
4.0.1
20
Linux
n/a
The following schema
{ schema: { // ... response: { 200: { type: 'string', headers: { 'Content-Type': { type: 'application/octet-stream', default: 'text/csv' }, }, }, }, }, }
Leads to reply.send being typed as (payload: string | undefined) => ....
(payload: string | undefined) => ...
This is problematic because sending streams leads to a type error
Argument of type Readable is not assignable to parameter of type string.
string
No response
reply.send(someReadable) does not lead to a type error
reply.send(someReadable)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Prerequisites
Fastify version
5
Plugin version
4.0.1
Node.js version
20
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
n/a
Description
The following schema
Leads to
reply.send
being typed as(payload: string | undefined) => ...
.This is problematic because sending streams leads to a type error
Link to code that reproduces the bug
No response
Expected Behavior
reply.send(someReadable)
does not lead to a type errorThe text was updated successfully, but these errors were encountered: