Skip to content

Commit d42bd36

Browse files
committed
fix: remove node streams from native fetch types
They cause errors with powergate
1 parent ca301b0 commit d42bd36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/native-fetch/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class Response extends globalThis.Response {
2828
clone: () => Response
2929

3030
// Body interface
31-
readonly body: NodeReadableStream | ReadableStream<Uint8Array> | null
31+
readonly body: ReadableStream<Uint8Array> | null
3232
readonly bodyUsed: boolean
3333
arrayBuffer: () => Promise<ArrayBuffer>
3434
blob: () => Promise<Blob>
@@ -47,7 +47,7 @@ export class Request extends globalThis.Request {
4747
constructor (input: RequestInfo, init?: RequestInit)
4848

4949
// Body interface
50-
readonly body: NodeReadableStream | ReadableStream<Uint8Array> | null
50+
readonly body: ReadableStream<Uint8Array> | null
5151
readonly bodyUsed: boolean
5252
arrayBuffer: () => Promise<ArrayBuffer>
5353
blob: () => Promise<Blob>

0 commit comments

Comments
 (0)