Skip to main content

Function: validateExtensionBlocklist()

validateExtensionBlocklist(input): CatalogValidationResult<ExtensionBlocklist>

Defined in: Extensions/ExtensionCatalog.ts:242

Validate an already-parsed blocklist document.

Unlike the catalog, a malformed entry here is dropped silently-but-counted rather than failing the document, and for the same reason inverted: a blocklist that fails to parse leaves users running software the publisher has declared dangerous. Salvaging the readable rules is the safer failure.

Parameters

input

unknown

Returns

CatalogValidationResult<ExtensionBlocklist>