Skip to content

MutableValidatorConfig

MutableValidatorConfig provides mutation of validator configuration settings.

getOrDefault<T>(name, defaultValue): T

Returns the configured value for a name, or the supplied default when no value is present.

T

string

T

T

ValidatorConfig.getOrDefault


set(name, value): void

Sets a validator option while preserving the type established by an earlier value.

string

unknown

void