mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Improve type definitions for the viewer
This commit improves compatibility of the viewer code with TypeScript by including missing type imports/definitions and correcting existing ones
This commit is contained in:
parent
2e5282928f
commit
da43a53a68
17 changed files with 93 additions and 15 deletions
|
@ -43,14 +43,14 @@ class BaseTreeViewer {
|
|||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
_dispatchEvent(count) {
|
||||
throw new Error("Not implemented: _dispatchEvent");
|
||||
}
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
_bindLink(element, params) {
|
||||
throw new Error("Not implemented: _bindLink");
|
||||
|
@ -71,7 +71,9 @@ class BaseTreeViewer {
|
|||
/**
|
||||
* Prepend a button before a tree item which allows the user to collapse or
|
||||
* expand all tree items at that level; see `_toggleTreeItem`.
|
||||
* @private
|
||||
* @param {HTMLDivElement} div
|
||||
* @param {boolean|object} [hidden]
|
||||
* @protected
|
||||
*/
|
||||
_addToggleButton(div, hidden = false) {
|
||||
const toggler = document.createElement("div");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue