Skip to content

Add ZipObject internalStream type declaration - #976

Open
jakezwang wants to merge 1 commit into
Stuk:mainfrom
jakezwang:fix-zipobject-internalstream-types
Open

jakezwang wants to merge 1 commit into
Stuk:mainfrom
jakezwang:fix-zipobject-internalstream-types

Conversation

@jakezwang

Copy link
Copy Markdown

Fixes #898.

Add the missing JSZipObject.internalStream() declaration using the existing output-type mapping and JSZipStreamHelper. Add TypeScript checks for stream events, chaining, accumulated output types, and invalid arguments/results.

Add the Node declarations required by the existing TypeScript check, pinned to a version compatible with the locked TypeScript 4.6.3.

Validation: the type regression fails before the declaration is added. npm test and npm run lint pass: 195 Node tests, 3313 assertions in each of Chromium, Firefox, and WebKit, and TypeScript checks. The usage tests also compile with TypeScript 5.9.3 and current Node declarations.

@jakezwang

Copy link
Copy Markdown
Author

Could you review the internalStream declaration for #898? The TypeScript checks exercise chaining, stream events and the accumulated output type.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zipobject internalstream method not present in type definition file

1 participant