Skip to content

Commit

Permalink
[ci:force] add missing types
Browse files Browse the repository at this point in the history
  • Loading branch information
DenysVuika committed Dec 11, 2023
1 parent b0d2b91 commit 8298045
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/core/src/lib/viewer/components/pdf-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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 };
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8298045

Please sign in to comment.