Skip to content

Commit

Permalink
Fix #3246: Messages add content to typescript (#3247)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Sep 6, 2022
1 parent f9a3d88 commit a2604c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/doc/messages/index.js
Expand Up @@ -476,6 +476,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail:
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>string</td>
<td>null</td>
<td>Unique id of the message.</td>
</tr>
<tr>
<td>severity</td>
<td>string</td>
Expand Down Expand Up @@ -518,6 +524,12 @@ messages.current.show({severity: 'success', summary: 'Success Message', detail:
<td>3000</td>
<td>Delay in milliseconds to close the message automatically.</td>
</tr>
<tr>
<td>icon</td>
<td>IconType</td>
<td>Defaults to severiy icon</td>
<td>Defines the icon to display.</td>
</tr>
</tbody>
</table>
</div>
Expand Down
1 change: 1 addition & 0 deletions components/lib/messages/messages.d.ts
Expand Up @@ -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;
Expand Down

0 comments on commit a2604c5

Please sign in to comment.