diff --git a/src/components/dialogservice/DialogService.d.ts b/src/components/dialogservice/DialogService.d.ts index ab57ce411..360b21fc1 100644 --- a/src/components/dialogservice/DialogService.d.ts +++ b/src/components/dialogservice/DialogService.d.ts @@ -1,4 +1,4 @@ -import { Plugin, VNode } from 'vue'; +import { Plugin } from 'vue'; import { DynamicDialogOptions, DynamicDialogInstance } from '../dynamicdialogoptions'; declare const plugin: Plugin; @@ -7,11 +7,11 @@ export default plugin; export interface DialogServiceMethods { /** * Displays the dialog using the dynamic dialog object options. - * @param {VNode} content - Dynamic component for content template + * @param {*} content - Dynamic component for content template * @param {DynamicDialogOptions} options - DynamicDialog Object * @return {@link DynamicDialogInstance} */ - open: (content: VNode, options?: DynamicDialogOptions) => DynamicDialogInstance; + open: (content: any, options?: DynamicDialogOptions) => DynamicDialogInstance; } declare module 'vue/types/vue' { diff --git a/src/components/dynamicdialogoptions/DynamicDialogOptions.d.ts b/src/components/dynamicdialogoptions/DynamicDialogOptions.d.ts index 15f6ce86b..c6632974b 100644 --- a/src/components/dynamicdialogoptions/DynamicDialogOptions.d.ts +++ b/src/components/dynamicdialogoptions/DynamicDialogOptions.d.ts @@ -1,4 +1,3 @@ -import { VNode } from 'vue'; import { DialogProps } from '../dialog'; export type DynamicDialogCloseType = 'config-close' | 'dialog-close' | undefined; @@ -7,11 +6,11 @@ export interface DynamicDialogTemplates { /** * Custom header template. */ - header: () => VNode[]; + header?: any; /** * Custom footer template. */ - footer: () => VNode[]; + footer?: any; } export interface DynamicDialogCloseOptions { @@ -45,7 +44,7 @@ export interface DynamicDialogOptions { * Closes the dialog. * @see DynamicDialogCloseOptions */ - onClose?: (options?: DynamicDialogCloseOptions) => void; + onClose?(options?: DynamicDialogCloseOptions): void; /** * Optional */ @@ -56,7 +55,7 @@ export interface DynamicDialogInstance { /** * Dynamic component for content template */ - content: VNode | undefined; + content: any; /** * Instance options * @see DynamicDialogOptions diff --git a/src/components/usedialog/UseDialog.d.ts b/src/components/usedialog/UseDialog.d.ts index ce8004961..47ebe9236 100644 --- a/src/components/usedialog/UseDialog.d.ts +++ b/src/components/usedialog/UseDialog.d.ts @@ -1,6 +1,5 @@ -import { VNode } from 'vue'; import { DynamicDialogOptions, DynamicDialogInstance } from '../dynamicdialogoptions'; export declare function useDialog(): { - open: (content: VNode, options?: DynamicDialogOptions) => DynamicDialogInstance; + open: (content: any, options?: DynamicDialogOptions) => DynamicDialogInstance; }