Skip to content

Commit 8c4ac9a

Browse files
committed
refactor: update response.stream type
1 parent 952f654 commit 8c4ac9a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types/response.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
* file that was distributed with this source code.
88
*/
99

10+
import { Readable } from 'node:stream'
11+
1012
/**
1113
* Cookie options can that can be set on the response
1214
*/
@@ -54,4 +56,4 @@ export type ResponseConfig = {
5456
/**
5557
* Stream that can be piped to the "response.stream" method
5658
*/
57-
export type ResponseStream = NodeJS.ReadStream | NodeJS.ReadWriteStream | NodeJS.ReadableStream
59+
export type ResponseStream = Readable

0 commit comments

Comments
 (0)