Skip to content

API ReferenceValidationFunction

validateUserProvidedLOCConfigAndThrow()

function validateUserProvidedLOCConfigAndThrow(locConfig): Promise<void>;

Validates the user-provided LOC config, throwing a ConfigError if any validation fails. This is a wrapper around validateConfig that can be used to fail fast if the config is invalid.

Parameters

ParameterTypeDescription
locConfigLOCConfig | undefinedThe LOC config to validate.

Returns

Promise<void>

Throws

If any validation errors occur.