Type alias StringOptions<TRequired, TDefault>

StringOptions<TRequired, TDefault>: BaseOptions<TRequired, TDefault> & {
    maxLength?: number;
    minLength?: number;
}

Type Parameters

  • TRequired

  • TDefault

Type declaration

  • Optional maxLength?: number

    Max length of the string in unicode runes

  • Optional minLength?: number

    Minimum length of the string in unicode runes

    Note if you just want to disallow an empty value then you should set "required" instead

Generated using TypeDoc