Skip to content

normalizeProductDetails

normalizeProductDetails(candidate): ProductDetails | undefined

Defined in: utils/product/sanitizeProducts.ts:60

Normalise one untrusted candidate into its ProductDetails scope fields, or undefined when none survived. Unlike normalizeSharingProduct, no title is required — callers that only need scope fields for reward selection never render a product card.

unknown

ProductDetails | undefined