Skip to content

Commit c296fa2

Browse files
Merge pull request #18 from Mini-ghost/next
feat(types): adjust the type defined to new version of v1.5+
2 parents 496c120 + 45bf2e4 commit c296fa2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

types/index.d.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ import {
66
ComponentPublicInstance
77
} from 'vue'
88

9-
interface VueFinalModal {
10-
install(app: App): void
9+
export interface VfmOptions {
10+
componentName: string,
11+
key: string
12+
}
13+
14+
type VueFinalModal = () => {
15+
install(app: App, options: VfmOptions): void
1116
}
1217

1318
interface VueFinalModalInfo {

0 commit comments

Comments
 (0)