diff --git a/lib/utils/streams.js b/lib/utils/streams.js index 3a78968..d5cd94a 100644 --- a/lib/utils/streams.js +++ b/lib/utils/streams.js @@ -1,7 +1,5 @@ import { Readable, Writable, Transform } from 'readable-stream' -/** @import { TransformOptions } from 'readable-stream' */ - /** * Create a writable stream from an async function. Default concurrecy is 16 - * this is the number of parallel functions that will be pending before @@ -134,10 +132,10 @@ export class ProgressStream extends Transform { #byteLength = 0 /** - * @param {TransformOptions & { onprogress?: ProgressCallback }} [opts] + * @param {{ onprogress?: ProgressCallback}} [opts] */ - constructor({ onprogress, ...opts } = {}) { - super(opts) + constructor({ onprogress } = {}) { + super() this.#onprogress = onprogress } diff --git a/tsconfig.publish.json b/tsconfig.publish.json index a302da7..078e24c 100644 --- a/tsconfig.publish.json +++ b/tsconfig.publish.json @@ -6,5 +6,5 @@ "emitDeclarationOnly": true, "outDir": "dist" }, - "include": ["lib/**/*"] + "include": ["lib/**/*", "types/**/*"] }