File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { type DocumentInitParameters } from 'pdfjs-dist/types/src/display/api' ;
22
3+ export { type DocumentInitParameters } from 'pdfjs-dist/types/src/display/api' ;
4+ export { type PageViewport } from 'pdfjs-dist/types/src/display/display_utils' ;
5+
36export const WORKER_URL = Meteor . isClient
47 ? '/pdfjs-dist/build/pdf.worker.min.js'
58 : 'pdfjs-dist/legacy/build/pdf.worker.js' ;
Original file line number Diff line number Diff line change @@ -9,12 +9,10 @@ import {
99 type PngConfig ,
1010} from 'canvas/types' ;
1111import addDays from 'date-fns/addDays' ;
12- import { type DocumentInitParameters } from 'pdfjs-dist/types/src/display/api' ;
13- import { type PageViewport } from 'pdfjs-dist/types/src/display/display_utils' ;
1412
1513import { cache as lru , type IndexedDBPersistedLRUCache } from '../cache/lru' ;
1614
17- import { fetchPDF } from './pdf' ;
15+ import { type DocumentInitParameters , type PageViewport , fetchPDF } from './pdf' ;
1816
1917let cache : IndexedDBPersistedLRUCache < string , string > ;
2018if ( Meteor . isClient ) {
You can’t perform that action at this time.
0 commit comments