Skip to main content

foundation-notifications.getnotificationdetails

Home > @genesislcap/foundation-notifications > getNotificationDetails

getNotificationDetails() function

Retrieves the notification details from an NotificationStructure object

Signature:

getNotificationDetails: (details: NotificationStructure) => string

Parameters

Parameter

Type

Description

details

NotificationStructure

The NotificationStructure object

Returns:

string

The title and body concatenated as a string, or default values ('Error: Something went wrong') if not present