We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d65917f commit ba370d0Copy full SHA for ba370d0
index.d.ts
@@ -27,7 +27,7 @@ type ContiguousData = Buffer | ArrayBufferLike | ArrayBufferView | string
27
28
type BufferOrString = Buffer | string
29
30
-declare class Minipass<
+export default class Minipass<
31
RType extends any = Buffer,
32
WType extends any = RType extends BufferOrString ? ContiguousData : RType
33
>
@@ -94,7 +94,7 @@ declare class Minipass<
94
concat(): RType extends BufferOrString ? Promise<RType> : never
95
destroy(er?: any): void
96
pipe<W extends Writable>(dest: W, opts?: Minipass.PipeOptions): W
97
- unpipe<W extends Writable>(dest: W)
+ unpipe<W extends Writable>(dest: W): void
98
99
/**
100
* alias for on()
0 commit comments