Skip to content

normalizeSharingProduct

normalizeSharingProduct(candidate): SharingPageProduct | null

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

Normalise one untrusted candidate into a SharingPageProduct, or null when it has no usable title. products is a public API boundary, so every URL field is validated structurally before reaching new URL(...).

unknown

SharingPageProduct | null