Function setValidationMessages

  • Parameters

    • messages: Partial<{
          shouldBeANumber: ValueOrFunc<string>;
          shouldBeAString: ValueOrFunc<string>;
          shouldBeAnArray: string;
          shouldBeAnArrayLongerThan: ((length: number) => string);
          shouldBeAnArrayShorterThan: ((length: number) => string);
          shouldBeBetweenValues: ((minValue: number, maxValue: number) => string);
          shouldBeGreaterThan: ((value: number) => ValueOrFunc<string>);
          shouldBeGreaterThanOrEqualTo: ((value: number) => string);
          shouldBeLessThan: ((value: number) => string);
          shouldBeLessThanOrEqualTo: ((value: number) => string);
          shouldBeLongerThan: ((length: number) => ValueOrFunc<string>);
          shouldBeShorterThan: ((length: number) => ValueOrFunc<string>);
          shouldMatch: ((pattern: RegExp) => ValueOrFunc<string>);
          shouldNotBeAnArrayLongerThan: ((length: number) => string);
          shouldNotBeAnArrayShorterThan: ((length: number) => string);
          shouldNotBeAnEmptyArray: string;
          shouldNotBeBetweenValues: ((minValue: number, maxValue: number) => string);
          shouldNotBeBlank: ValueOrFunc<string>;
          shouldNotBeEmpty: ValueOrFunc<string>;
          shouldNotBeGreaterThan: ((value: number) => string);
          shouldNotBeGreaterThanOrEqualTo: ((value: number) => string);
          shouldNotBeLessThan: ((value: number) => string);
          shouldNotBeLessThanOrEqualTo: ((value: number) => string);
          shouldNotBeLongerThan: ((length: number) => ValueOrFunc<string>);
          shouldNotBeShorterThan: ((length: number) => ValueOrFunc<string>);
          shouldNotMatch: ((pattern: RegExp) => ValueOrFunc<string>);
          validatorResultErrorMessage: ValueOrFunc<string>;
      }>

    Returns void

Generated using TypeDoc