You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently using @pdftron/webviewer version 10.7.1 in my project. I encountered an issue where TypeScript does not recognize the customHandlerId property in the instance.UI.loadDocument method.
WebViewer version
10.7.1
The current behavior
TypeScript does not recognize customHandlerId as a valid property in the instance.UI.loadDocument method and throws an error.
The expected behavior customHandlerId should be recognized by TypeScript as a valid property in the instance.UI.loadDocument method.
Steps to reproduce
Install @pdftron/webviewer version 10.7.1.
Use the customHandlerId property in the instance.UI.loadDocument method in your code.
TypeScript will show an error indicating that customHandlerId does not exist in the type definitions.
Possible Solution
Update the type definitions to include customHandlerId as a valid property in the instance.UI.loadDocument method.
Additional Context
I am using TypeScript version 4.9.5 and Node.js version 20.x.x on macOS.
My Environment
OS: macOS
Node.js version: 20.x.x
TypeScript version: 4.9.5
@pdftron/webviewer version: 10.7.1
The text was updated successfully, but these errors were encountered:
Thanks for this report. I will add an item to our backlog to fix this doc. In the meantime, you can also use loadDocument from the documentViewer itself; looking at that code I see that customHandlerId is properly documented there. The UI method is just a wrapper for the method from the documentViewer.
Description
I am currently using
@pdftron/webviewer
version10.7.1
in my project. I encountered an issue where TypeScript does not recognize thecustomHandlerId
property in theinstance.UI.loadDocument
method.WebViewer version
10.7.1
The current behavior
TypeScript does not recognize
customHandlerId
as a valid property in theinstance.UI.loadDocument
method and throws an error.The expected behavior
customHandlerId
should be recognized by TypeScript as a valid property in theinstance.UI.loadDocument
method.Steps to reproduce
@pdftron/webviewer
version10.7.1
.customHandlerId
property in theinstance.UI.loadDocument
method in your code.customHandlerId
does not exist in the type definitions.Possible Solution
Update the type definitions to include
customHandlerId
as a valid property in theinstance.UI.loadDocument
method.Additional Context
I am using TypeScript version
4.9.5
and Node.js version20.x.x
on macOS.My Environment
20.x.x
4.9.5
@pdftron/webviewer
version:10.7.1
The text was updated successfully, but these errors were encountered: