Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Util

Index

Properties

Static DATE_TIME_ISO8601

DATE_TIME_ISO8601: RegExp = /^(?:[1-9]\d{3}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1\d|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[1-9]\d(?:0[48]|[2468][048]|[13579][26])|(?:[2468][048]|[13579][26])00)-02-29)T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:Z|[+-][01]\d:[0-5]\d)$/

Methods

Static detectCollectionType

  • Detects the dynamodb type to which an collection value should be mapped. Empty collections will be mapped to L(ist). Collections of type array where all the values are either String | Number | Binary will be mapped to the corresponding S(et) type. If the item types are heterogeneous or it is a non supported set type the returned type will be L(ist). The logic for collection fo type Set is the same.

    Parameters

    • collection: any[] | Set<any>

    Returns AttributeCollectionType

Static detectType

Static isBinary

  • isBinary(data: any): boolean

Static isBrowser

  • isBrowser(): any

Static isBufferType

  • isBufferType(type: any): boolean

Static isCollection

  • isCollection(value: any): boolean

Static isNode

  • isNode(): boolean

Static isSet

  • isSet(value: any): boolean

Static isType

  • isType(obj: any, type: any): boolean

Static typeByConvention

Static typeName

  • typeName(type: any): "Null" | "Undefined" | string
  • Returns the name of the given Type. null and undefined are special cases were we return 'Null' vs. 'Undefined'

    Parameters

    • type: any

    Returns "Null" | "Undefined" | string

Static typeOf

Static typeOfFromDb

Static uuidv4

  • uuidv4(): string

Object literals

Static REGEX_CONVENTIONS

REGEX_CONVENTIONS: object

date

date: RegExp = /^(?:date|[\w]+(?:Date|At)(?:[A-Z]{1}[\w]+)?)$/

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc