mirror of
				https://github.com/KevinMidboe/vue-js-modal.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Add type definitions
This commit is contained in:
		
							
								
								
									
										21
									
								
								types/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								types/index.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,21 @@ | ||||
| import Vue, { PluginObject } from "vue"; | ||||
|  | ||||
| declare const VueJSModal: PluginObject<VueJSModalOptions>; | ||||
| export default VueJSModal; | ||||
|  | ||||
| export declare interface VueJSModalOptions { | ||||
|   componentName?: string; | ||||
|   dialog?: boolean; | ||||
| } | ||||
|  | ||||
| declare interface VModal { | ||||
|   show(name: string, params?: object): void; | ||||
|   hide(name: string, params?: object): void; | ||||
|   toggle(name: string, params?: object): void; | ||||
| } | ||||
|  | ||||
| declare module "vue/types/vue" { | ||||
|   interface Vue { | ||||
|     $modal: VModal; | ||||
|   } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user