Skip to main content

StringCriterias <S>

Type parameters

  • S

Hierarchy

Index

Methods

camelCase

  • Require field value to be formatted in camel case (fooBar).

contains

  • Require field value to contain a provided string.

kebabCase

  • Require field value to be formatted in kebab case (foo-bar).

lengthOf

  • lengthOf(size: number, options?: Options): S
  • Require field value to be of a specific string length.

lowerCase

  • Require field value to be all lower case.

match

  • match(pattern: RegExp, options?: Options): S
  • Require field value to match a defined regex pattern.

notEmpty

  • Require field value to not be an empty string.

pascalCase

  • Require field value to be formatted in pascal case (FooBar).

snakeCase

  • Require field value to be formatted in snake case (foo_bar).

upperCase

  • Require field value to be all upper case.