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:
Eduard Ghazanchyan 2024-04-03 23:49:06 +04:00
parent 2e5282928f
commit da43a53a68
17 changed files with 93 additions and 15 deletions

View file

@ -13,6 +13,8 @@
* limitations under the License.
*/
/** @typedef {import("./event_utils.js").EventBus} EventBus */
import { AnnotationEditorType, shadow } from "pdfjs-lib";
import { CursorTool, PresentationModeState } from "./ui_utils.js";
import { GrabToPan } from "./grab_to_pan.js";