Skip to content

Commit

Permalink
fix emit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
achou11 committed Sep 27, 2024
1 parent 688c44e commit 8d96711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions lib/utils/streams.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.publish.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"emitDeclarationOnly": true,
"outDir": "dist"
},
"include": ["lib/**/*"]
"include": ["lib/**/*", "types/**/*"]
}

0 comments on commit 8d96711

Please sign in to comment.