Skip to main content

Function: parseFeaturePacks()

parseFeaturePacks(raw): object

Defined in: Data/Core/FeaturePackTypes.ts:554

Validate a catalog's whole feature_packs section, dropping entries that do not validate. Unlike a single pack — where a bad field is fatal — one broken listing must not hide every other pack in the catalog, so rejects are reported alongside the survivors for the caller to log.

Parameters

raw

unknown

Returns

object

packs

packs: FeaturePack[]

rejected

rejected: object[]