• Helper which returns an IConfigDefaultCheck instance with the provided field validator

    Type Parameters

    Parameters

    • validator: IConfigCheckFn<V>

      The IConfigCheckFn function to validate the user provided value

    • defaultValue: V

      The default value to apply it not provided or it's not valid

    • OptionalfallBackName: keyof T | keyof C | (keyof T | keyof C)[]

      The fallback configuration name if the current value is not available

    Returns IConfigDefaultCheck<T, V, C>

    a new IConfigDefaultCheck structure