Skip to content

Commit

Permalink
Merge pull request #248 from pkaminski/patch-3
Browse files Browse the repository at this point in the history
Fix return type for `Response.stream`.
  • Loading branch information
kartikk221 authored Apr 11, 2024
2 parents 00a82e5 + 8b63c58 commit f5111f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/components/http/Response.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export class Response<Locals = DefaultResponseLocals> extends Writable {
* @param {Readable} readable A Readable stream which will be piped as response body
* @param {Number=} total_size Total size of the Readable stream source in bytes (Optional)
*/
stream(readable: Readable, total_size?: number): void;
stream(readable: Readable, total_size?: number): Promise<void>;

/**
* Instantly aborts/closes current request without writing a status response code.
Expand Down

0 comments on commit f5111f8

Please sign in to comment.