Update Toast.d.ts

pull/1953/head
Tuğçe Küçükoğlu 2022-01-07 11:00:30 +03:00 committed by Tuğçe Küçükoğlu
parent ede318f378
commit 400f6fd196
1 changed files with 10 additions and 2 deletions

View File

@ -19,7 +19,7 @@ export interface ToastMessageOptions {
/** /**
* Detail content of the message. * Detail content of the message.
*/ */
detail?: string | undefined; detail?: any | undefined;
/** /**
* Whether the message can be closed manually using the close icon. * Whether the message can be closed manually using the close icon.
* Default value is true. * Default value is true.
@ -87,8 +87,16 @@ export interface ToastProps {
export interface ToastSlots { export interface ToastSlots {
/** /**
* Custom message template. * Custom message template.
* @param {Object} scope - message slot's params.
*/ */
message: () => VNode[]; message: (
scope: {
/**
* Message of the component
*/
message: any;
}
) => VNode[];
} }
export declare type ToastEmits = { export declare type ToastEmits = {