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
| Parameter | Type | Description |
|---|---|---|
locConfig | LOCConfig | undefined | The LOC config to validate. |
Returns
Promise<void>
Throws
If any validation errors occur.