Skip to content

Commit 550002e

Browse files
Merge pull request #19 from Mini-ghost/master
feat(types): adjust the type defined to new version of v0.18+
2 parents 3ea8089 + 70f31fb commit 550002e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

types/index.d.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Vue, { PluginFunction } from 'vue'
1+
import Vue, { PluginObject } from 'vue'
22

33
export class VueFinalModalComponant extends Vue {
44
$refs: {
@@ -20,6 +20,10 @@ declare module 'vue/types/vue' {
2020
}
2121
}
2222

23-
export default class VueFinalModal {
24-
static install(vue: typeof Vue): PluginFunction<never>
25-
}
23+
export interface VfmOptions {
24+
componentName: string,
25+
key: string
26+
}
27+
28+
declare const VfmPlugin: () => PluginObject<VfmOptions>
29+
export default VfmPlugin

0 commit comments

Comments
 (0)