-
-
Notifications
You must be signed in to change notification settings - Fork 486
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
NPM 8.5.0 Package / wrong types for patchDocument #2605
Comments
same problem |
Same problem |
Yes, this is not released as of yet Will be part of the next major version as this is a breaking API change |
@dolanmiu do you have an estimated date of when the next major version will be released? 😀 |
i faced the same issue. what i did as workaround:
but please be careful on this - its a workaround! |
Published |
Wrong version of from-docx.ts packaged for NPM 8.5.0 package?
I installed the docx 8.5.0 Package via NPM
"dependencies": {
"docx": "^8.5.0"
}
and wanted to run the Demos
but they are not working, because of the wrong type definition for the function "patchDocument".
When looking into build/patcher/from-docx.d.ts of the downloaded NPM package, it shows that the exported type for patchDocument has another parameter definition as used in the demos:
It's also explained on the pull requests page, that there had been breaking changes: #2497 but it seems that it did not get it into the NPM package.
On gitHub when looking into the source the type is defined that way that it is working with the demos.
The text was updated successfully, but these errors were encountered: