Options
All
  • Public
  • Public/Protected
  • All
Menu

Package validators

@typescript-entity/validators

Validator functions for common validation strategies.

For use with the @typescript-entity library.

Index

Type aliases

IsEmailOptions

IsEmailOptions: IsEmailOptions

IsLengthOptions

IsLengthOptions: IsLengthOptions

IsURLOptions

IsURLOptions: IsURLOptions

Functions

Const isAfter

Const isBefore

Const isCountryCode

Const isEmail

  • isEmail(value: string, name: AttrName, options?: IsEmailOptions): boolean

Const isLength

  • isLength(value: string, name: AttrName, options?: IsLengthOptions): boolean

Const isNegative

  • isNegative(value: number): boolean

Const isPositive

  • isPositive(value: number): boolean

Const isURL

  • isURL(value: string, name: AttrName, options?: IsURLOptions): boolean

Const isUUID

Generated using TypeDoc