From 6f4941e2a13c0f356ca3064327f5e2802e9180ac Mon Sep 17 00:00:00 2001 From: ehmicky Date: Thu, 9 May 2024 21:36:45 +0100 Subject: [PATCH] Fix typing of web streams (#1043) --- test-d/stdio/option/readable-stream.test-d.ts | 1 + test-d/stdio/option/writable-stream.test-d.ts | 1 + types/stdio/type.d.ts | 1 + 3 files changed, 3 insertions(+) diff --git a/test-d/stdio/option/readable-stream.test-d.ts b/test-d/stdio/option/readable-stream.test-d.ts index 9c8dcdb72a..871c770822 100644 --- a/test-d/stdio/option/readable-stream.test-d.ts +++ b/test-d/stdio/option/readable-stream.test-d.ts @@ -1,3 +1,4 @@ +import {ReadableStream} from 'node:stream/web'; import {expectError, expectAssignable, expectNotAssignable} from 'tsd'; import { execa, diff --git a/test-d/stdio/option/writable-stream.test-d.ts b/test-d/stdio/option/writable-stream.test-d.ts index 352eced144..d179b9fe0d 100644 --- a/test-d/stdio/option/writable-stream.test-d.ts +++ b/test-d/stdio/option/writable-stream.test-d.ts @@ -1,3 +1,4 @@ +import {WritableStream} from 'node:stream/web'; import {expectError, expectAssignable, expectNotAssignable} from 'tsd'; import { execa, diff --git a/types/stdio/type.d.ts b/types/stdio/type.d.ts index f315e3e7ac..ca1d0f1e03 100644 --- a/types/stdio/type.d.ts +++ b/types/stdio/type.d.ts @@ -1,4 +1,5 @@ import type {Readable, Writable} from 'node:stream'; +import type {ReadableStream, WritableStream} from 'node:stream/web'; import type { Not, And,