Skip to content

Commit

Permalink
fix: local PDFJS interface
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Aug 28, 2023
1 parent 6d4f43e commit a3051fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/index.web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export {
resolvePDFJSImports,
} from "./_utils";

// TODO: init official PDF.js build for web?

export const getPDFMeta: typeof _getPDFMeta = async (...args) => {
await resolvePDFJSImports();
return await _getPDFMeta(...args);
Expand Down
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export type PDFJS = any;
import type _PDFJS from "pdfjs-dist/types/src/pdf";

export type PDFJS = typeof _PDFJS;

export interface UnPDFConfiguration {
/**
Expand Down

0 comments on commit a3051fe

Please # to comment.