Update DynamicDialogOptions.d.ts

pull/2669/head
mertsincan 2022-06-14 13:34:59 +01:00
parent 66eca2e78d
commit e520b266f2
1 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
import { VNode } from 'vue';
import { DialogProps } from '../dialog';
export type DynamicDialogHideType = 'config-close' | 'dialog-close' | undefined;
export type DynamicDialogCloseType = 'config-close' | 'dialog-close' | undefined;
export interface DynamicDialogTemplates {
/**
@ -14,16 +14,16 @@ export interface DynamicDialogTemplates {
footer: () => VNode[];
}
export interface DynamicDialogHideOptions {
export interface DynamicDialogCloseOptions {
/**
* Custom data object
*/
data?: any;
/**
* Hide type
* @see DynamicDialogHideType
* Close type
* @see DynamicDialogCloseType
*/
type: DynamicDialogHideType;
type: DynamicDialogCloseType;
}
export interface DynamicDialogOptions {
@ -42,10 +42,10 @@ export interface DynamicDialogOptions {
*/
data?: any;
/**
* Hides the dialog.
* @see DynamicDialogHideOptions
* Closes the dialog.
* @see DynamicDialogCloseOptions
*/
onHide?: (options?: DynamicDialogHideOptions) => void;
onClose?: (options?: DynamicDialogCloseOptions) => void;
/**
* Optional
*/