Skip to content

Commit

Permalink
Merge pull request #100 from podium-lib/fix_incorrect_type
Browse files Browse the repository at this point in the history
fix: change incorrect type
  • Loading branch information
digitalsadhu authored Sep 13, 2024
2 parents 1938604 + b841769 commit 4711700
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/stream-utils/streams.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import stream from 'readable-stream';

/**
* @template [T=string]
* @param {(result: T[]) => void} done
* @param {(result: any[]) => void} done
* @returns
*/
export const destinationObjectStream = (done) => {
/** @type {T[]} */
const arr = [];

const dStream = new stream.Writable({
objectMode: true,
/**
* @param {T} chunk
* @param {any} chunk
* @param {string} encoding
* @param {() => void} callback
*/
Expand Down

0 comments on commit 4711700

Please sign in to comment.