Skip to content

Commit

Permalink
Fix type of TransformStream (#1044)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored May 10, 2024
1 parent 6f4941e commit 11bbd9d
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions test-d/stdio/option/web-transform-instance.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {TransformStream} from 'node:stream/web';
import {expectError, expectAssignable, expectNotAssignable} from 'tsd';
import {
execa,
Expand Down
1 change: 1 addition & 0 deletions test-d/stdio/option/web-transform-invalid.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {TransformStream} from 'node:stream/web';
import {expectError, expectNotAssignable} from 'tsd';
import {
execa,
Expand Down
1 change: 1 addition & 0 deletions test-d/stdio/option/web-transform-object.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {TransformStream} from 'node:stream/web';
import {expectError, expectAssignable, expectNotAssignable} from 'tsd';
import {
execa,
Expand Down
1 change: 1 addition & 0 deletions test-d/stdio/option/web-transform.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {TransformStream} from 'node:stream/web';
import {expectError, expectAssignable, expectNotAssignable} from 'tsd';
import {
execa,
Expand Down
1 change: 1 addition & 0 deletions test-d/transform/object-mode.test-d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {Duplex} from 'node:stream';
import {TransformStream} from 'node:stream/web';
import {expectType} from 'tsd';
import {execa, type ExecaError} from '../../index.js';

Expand Down
2 changes: 1 addition & 1 deletion types/stdio/type.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type {Readable, Writable} from 'node:stream';
import type {ReadableStream, WritableStream} from 'node:stream/web';
import type {ReadableStream, WritableStream, TransformStream} from 'node:stream/web';
import type {
Not,
And,
Expand Down
1 change: 1 addition & 0 deletions types/transform/normalize.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type {TransformStream} from 'node:stream/web';
import type {Duplex} from 'node:stream';
import type {Unless} from '../utils.js';

Expand Down

0 comments on commit 11bbd9d

Please sign in to comment.