Skip to main content

Function: validateNotificationPreferenceUpdate()

function validateNotificationPreferenceUpdate(
value: unknown
): ZodSafeParseResult<NotificationPreferenceUpdate>;

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

Validates a notification preference payload against the shared schema.

Parametersโ€‹

valueโ€‹

unknown

Returnsโ€‹

ZodSafeParseResult<NotificationPreferenceUpdate>