Skip to content

Commit

Permalink
fix some type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TaTo30 committed Jan 12, 2024
1 parent fe8c3df commit 902c969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/usePDF.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function usePDF(src: PDFSrc | Ref<PDFSrc>,
const info = shallowRef<PDFInfo | {}>({})

function processLoadingTask(source: PDFSrc) {
const loadingTask = PDFJS.getDocument(source)
const loadingTask = PDFJS.getDocument(source!)
if (options.onProgress)
loadingTask.onProgress = options.onProgress

Expand Down

0 comments on commit 902c969

Please sign in to comment.