We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1620a9b commit 3430ed0Copy full SHA for 3430ed0
2 files changed
src/plugin.ts
@@ -5,6 +5,6 @@ interface PluginOptions {}
5
6
export const PDFPlugin: Plugin = {
7
install: (app: App, options: PluginOptions = {}) => {
8
- app.config.globalProperties.$pdf = PDF as typeof PDF;
+ app.config.globalProperties.$pdf = PDF as any;
9
},
10
};
src/use.ts
@@ -1,10 +1,9 @@
1
import { getCurrentInstance, ComponentInternalInstance } from 'vue-demi';
2
-import * as PDF from 'pdfmake/build/pdfmake';
3
4
-export const usePDF = (): typeof PDF => {
+export const usePDF = (): any => {
const internalInstance = getCurrentInstance()
const pdf = (internalInstance as ComponentInternalInstance).appContext
.config.globalProperties.$pdf
- return pdf as typeof PDF
+ return pdf as any
}
0 commit comments