Skip to content

Conversation

emilbonnek
Copy link

I think this was supposed to be done as part of PR #826.

At the moment OnUpdateCallback and Metadata are not exported so I had to rely on JSZip.JSZipMetadata for a typesafe onUpdate callback to generateAsync. However, JSZip.JSZipMetadata isn't exactly identical to Metadata as Metadata has a union type that allows currentfile to be null. I see this was added in PR #826 , but shouldn't it be added to both types?

@Stuk
Copy link
Owner

Stuk commented Jul 20, 2022

I think it would be better to combine those types. I've made #852, could you take a look and see if that would fix the issue?

@emilbonnek
Copy link
Author

Yes, you are right - that is a much nicer solution.
I am closing this.

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.

2 participants