We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d8f17b commit 9a4c75fCopy full SHA for 9a4c75f
packages/streaming/src/bson/decoder.ts
@@ -10,7 +10,7 @@ export type BSONStreamDecoderParams<T> = {
10
writableStrategy?: QueuingStrategy<Buffer | undefined>;
11
readableStrategy?: QueuingStrategy<T | undefined>;
12
};
13
-export const createBSONStreamDecoder = <T = any>(params?: BSONStreamDecoderParams<T>): TransformStream<Buffer, T> => {
+export const createBSONStreamDecoder = <T = any>(params?: BSONStreamDecoderParams<T>): ReadableWritablePair<T,Buffer> => {
14
const buffer = buffer_array.createReadableBufferArray();
15
let frame_size: null | number = null;
16
0 commit comments