notification_of
@rotorsoft/act-root / act/src / notification_of
Function: notification_of()
notification_of(
raw):StoreNotification|undefined
Defined in: libs/act/src/utils.ts:234
The commit notification in a payload a store or broker received, or
undefined when there is none: stream must be a string, and only
{ id: number, name: string } events are kept, stripped of anything else.
A payload with no such event is not a notification. In core so every
listener reads a foreign or version-skewed payload the same way.
Parameters
raw
unknown
Returns
StoreNotification | undefined