Skip to content

Commit

Permalink
refactor: update response.stream type
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jul 26, 2023
1 parent 952f654 commit 8c4ac9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
* file that was distributed with this source code.
*/

import { Readable } from 'node:stream'

/**
* Cookie options can that can be set on the response
*/
Expand Down Expand Up @@ -54,4 +56,4 @@ export type ResponseConfig = {
/**
* Stream that can be piped to the "response.stream" method
*/
export type ResponseStream = NodeJS.ReadStream | NodeJS.ReadWriteStream | NodeJS.ReadableStream
export type ResponseStream = Readable

0 comments on commit 8c4ac9a

Please sign in to comment.