Skip to content

Commit 5e6ccbc

Browse files
authored
Add params parameter to show() and toggle()
As stated in the docs, `show()` and `toggle()` accept a parameter called `params`. (https://vue-final-modal.org/#vfmshowname-params) While this is technically working, there is no TypeScript Support for this yet.
1 parent f5e48a6 commit 5e6ccbc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export type VueFinalModalProperty = {
3838
openedModals: VueFinalModalInfo[]
3939
modals: VueFinalModalInfo[]
4040
get(name: string): VueFinalModalInfo | undefined
41-
show(name: string): void
41+
show(name: string, params?: any): void
4242
hide(name: string): void
4343
hideAll(): void
44-
toggle(name: string, show: boolean): void
44+
toggle(name: string, show: boolean, params?: any): void
4545
}
4646

4747
declare module '@vue/runtime-core' {

0 commit comments

Comments
 (0)