Skip to main content

Function: validateNotificationPreferenceUpdate()

validateNotificationPreferenceUpdate(value: unknown): ZodSafeParseResult<{ mutedSiteNotificationIdentifiers?: readonly string[]; systemNotificationsEnabled: boolean; systemNotificationsSoundEnabled: boolean; }>

Defined in: shared/validation/notifications.ts:27

Validates a notification preference payload against the shared schema.

Parametersโ€‹

valueโ€‹

unknown

Returnsโ€‹

ZodSafeParseResult<{ mutedSiteNotificationIdentifiers?: readonly string[]; systemNotificationsEnabled: boolean; systemNotificationsSoundEnabled: boolean; }>