From 19d9a32735dcce6078d58f6c63243cbebf8f8c65 Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 6 Sep 2022 09:07:25 -0400 Subject: [PATCH] Fix #3246: Messages add content to typescript --- components/doc/messages/index.js | 12 ++++++++++++ components/lib/messages/messages.d.ts | 1 + 2 files changed, 13 insertions(+) diff --git a/components/doc/messages/index.js b/components/doc/messages/index.js index 945c4ecba2..d6fcdc1545 100644 --- a/components/doc/messages/index.js +++ b/components/doc/messages/index.js @@ -476,6 +476,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail: + + id + string + null + Unique id of the message. + severity string @@ -518,6 +524,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail: 3000 Delay in milliseconds to close the message automatically. + + icon + IconType + Defaults to severiy icon + Defines the icon to display. + diff --git a/components/lib/messages/messages.d.ts b/components/lib/messages/messages.d.ts index 97d48f4bd1..51202f239a 100644 --- a/components/lib/messages/messages.d.ts +++ b/components/lib/messages/messages.d.ts @@ -9,6 +9,7 @@ type MessagesMessageType = MessagesMessage | MessagesMessage[]; export interface MessagesMessage { id?: string; severity?: MessagesSeverityType; + content?: React.ReactNode; summary?: React.ReactNode; detail?: React.ReactNode; closable?: boolean;