mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
#173 Implement dynamic modals functionality
This commit is contained in:
4
types/index.d.ts
vendored
4
types/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import Vue, { PluginObject } from "vue";
|
||||
import Vue, { PluginObject, ComponentOptions } from "vue";
|
||||
|
||||
declare const VueJSModal: PluginObject<VueJSModalOptions>;
|
||||
export default VueJSModal;
|
||||
@@ -9,7 +9,7 @@ export declare interface VueJSModalOptions {
|
||||
}
|
||||
|
||||
declare interface VModal {
|
||||
show(name: string, params?: object): void;
|
||||
show(modal: string | typeof Vue | ComponentOptions<Vue>, paramsOrProps?: object, params?: object): void;
|
||||
hide(name: string, params?: object): void;
|
||||
toggle(name: string, params?: object): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user