From 8298045c24812a3f73b313e21dba2273893c5c4f Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Mon, 11 Dec 2023 18:58:32 -0500 Subject: [PATCH] [ci:force] add missing types --- lib/core/src/lib/viewer/components/pdf-viewer.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/core/src/lib/viewer/components/pdf-viewer.component.ts b/lib/core/src/lib/viewer/components/pdf-viewer.component.ts index 22386c431bf..3acd35d89d9 100644 --- a/lib/core/src/lib/viewer/components/pdf-viewer.component.ts +++ b/lib/core/src/lib/viewer/components/pdf-viewer.component.ts @@ -35,7 +35,7 @@ import { MatDialog } from '@angular/material/dialog'; import { RenderingQueueServices } from '../services/rendering-queue.services'; import { PdfPasswordDialogComponent } from './pdf-viewer-password-dialog'; import { AppConfigService } from '../../app-config/app-config.service'; -import { PDFDocumentProxy, OnProgressParameters } from 'pdfjs-dist'; +import { PDFDocumentProxy, OnProgressParameters, PDFDocumentLoadingTask } from 'pdfjs-dist'; import { Subject } from 'rxjs'; import { catchError, delay } from 'rxjs/operators'; @@ -95,7 +95,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy { MIN_SCALE: number = 0.25; MAX_SCALE: number = 10.0; - loadingTask: any; + loadingTask: PDFDocumentLoadingTask; isPanelDisabled = true; showThumbnails: boolean = false; pdfThumbnailsContext: { viewer: any } = { viewer: null }; @@ -208,7 +208,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy { this.isPanelDisabled = true; this.loadingTask.promise - .then((pdfDocument: PDFDocumentProxy) => { + .then((pdfDocument) => { this.totalPages = pdfDocument.numPages; this.page = 1; this.displayPage = 1;