From e1a2755de99668fddccb8a71f5776c0a82665cc9 Mon Sep 17 00:00:00 2001 From: Melloware Date: Sun, 11 Aug 2024 08:10:50 -0400 Subject: [PATCH] Fix #7023: Toast typescript def for content (#7024) --- components/lib/toast/toast.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/lib/toast/toast.d.ts b/components/lib/toast/toast.d.ts index 8a3eb39df1..e876d99f8e 100644 --- a/components/lib/toast/toast.d.ts +++ b/components/lib/toast/toast.d.ts @@ -165,7 +165,7 @@ export interface ToastMessage { /** * Custom content of the message. If enabled, summary and details properties are ignored. */ - content?: React.ReactNode | undefined; + content?: React.ReactNode | ((props: ContentProps) => React.ReactNode); /** * Whether the message can be closed manually using the close icon. * @defaultValue true