Skip to content

Commit 3430ed0

Browse files
committed
chore: types
1 parent 1620a9b commit 3430ed0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ interface PluginOptions {}
55

66
export const PDFPlugin: Plugin = {
77
install: (app: App, options: PluginOptions = {}) => {
8-
app.config.globalProperties.$pdf = PDF as typeof PDF;
8+
app.config.globalProperties.$pdf = PDF as any;
99
},
1010
};

src/use.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import { getCurrentInstance, ComponentInternalInstance } from 'vue-demi';
2-
import * as PDF from 'pdfmake/build/pdfmake';
32

4-
export const usePDF = (): typeof PDF => {
3+
export const usePDF = (): any => {
54
const internalInstance = getCurrentInstance()
65
const pdf = (internalInstance as ComponentInternalInstance).appContext
76
.config.globalProperties.$pdf
87

9-
return pdf as typeof PDF
8+
return pdf as any
109
}

0 commit comments

Comments
 (0)