From aabf768e534d3a39bc9ef5212def5a19be702167 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 8 Jan 2021 09:15:34 +0100 Subject: [PATCH] Try to fix TypeScript definitions for the es5-build in pdfjs-dist (issue 12872) Given that we're already using the `external/dist/` folder for things we simply want to copy to pdfjs-dist during building, this patch *should* hopefully work since it's based on the suggestion in issue 12827. As long as this only requires a *single/small* file, to fix the TypeScript definitions in es5-builds, this solution seem acceptable as far as I'm concerned. (Although, please note that I don't know enough about TypeScript to actually test the patch.) --- external/dist/es5/build/pdf.d.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 external/dist/es5/build/pdf.d.ts diff --git a/external/dist/es5/build/pdf.d.ts b/external/dist/es5/build/pdf.d.ts new file mode 100644 index 000000000..3f3cd7fb2 --- /dev/null +++ b/external/dist/es5/build/pdf.d.ts @@ -0,0 +1 @@ +export * from "pdfjs-dist";