Skip to main content

Function: validateExtensionCatalog()

validateExtensionCatalog(input): CatalogValidationResult<ExtensionCatalog>

Defined in: Extensions/ExtensionCatalog.ts:140

Validate an already-parsed catalog document.

Malformed entries are dropped rather than failing the whole document: one bad listing in a catalog of fifty should not make the other forty-nine un-installable. A document that is structurally wrong (not an object, wrong format marker, extensions not an array) fails outright, because at that point there is nothing to salvage and silently returning an empty catalog would look identical to a catalog that legitimately offers nothing.

Parameters

input

unknown

Returns

CatalogValidationResult<ExtensionCatalog>