File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ interface PluginOptions {}
5
5
6
6
export const PDFPlugin : Plugin = {
7
7
install : ( app : App , options : PluginOptions = { } ) => {
8
- app . config . globalProperties . $pdf = PDF as typeof PDF ;
8
+ app . config . globalProperties . $pdf = PDF as any ;
9
9
} ,
10
10
} ;
Original file line number Diff line number Diff line change 1
1
import { getCurrentInstance , ComponentInternalInstance } from 'vue-demi' ;
2
- import * as PDF from 'pdfmake/build/pdfmake' ;
3
2
4
- export const usePDF = ( ) : typeof PDF => {
3
+ export const usePDF = ( ) : any => {
5
4
const internalInstance = getCurrentInstance ( )
6
5
const pdf = ( internalInstance as ComponentInternalInstance ) . appContext
7
6
. config . globalProperties . $pdf
8
7
9
- return pdf as typeof PDF
8
+ return pdf as any
10
9
}
You can’t perform that action at this time.
0 commit comments