Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made zip type generic #704

Merged
merged 1 commit into from
Mar 3, 2023
Merged

Made zip type generic #704

merged 1 commit into from
Mar 3, 2023

Conversation

oleksandr-danylchenko
Copy link
Contributor

@oleksandr-danylchenko oleksandr-danylchenko commented Mar 3, 2023

Previously, all the types of the zip were any. It doesn't allow using of the PizZip or other archivers with type confidence. And IDE pulls types from random places when you try using getZip:
image

In this PR I made the type of passed zip generic and inferrable which will improve the DX and will prevent as PizZip statements in the code.

@edi9999 edi9999 merged commit 2d7792d into open-xml-templating:master Mar 3, 2023
@edi9999
Copy link
Member

edi9999 commented Mar 3, 2023

Thanks a lot , very cool merge request, it will indeed be useful to autocomplete after the "getZip()" this way !

Thanks ! Will publish this soon !

@edi9999
Copy link
Member

edi9999 commented Mar 5, 2023

Published in 3.34.3

@oleksandr-danylchenko
Copy link
Contributor Author

Thank you 🤝

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