Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Guid

Represents a globally unique identifier. Performs RAII to make sure that the GUID is valid and all subsequent assignments are valid.

The class standardises GUIDs by stripping square and squiggly brackets and converting to lowercase.

Hierarchy

Implements

Index

Constructors

constructor

  • new Guid(value: Accepted, __namedParameters?: object): Guid

Properties

regex

regex: RegExp

Accessors

value

  • get value(): string
  • set value(value: string): void

Methods

__@iterator

  • __@iterator(): IterableIterator<string>

__@toPrimitive

  • __@toPrimitive(hint: "string" | "number" | "default"): string | number

__@toStringTag

  • __@toStringTag(): string

get

  • get(): string

set

toJSON

  • toJSON(_?: string): any | number | string | boolean | null
  • Converts the primitive into it's JSON representation

    Parameters

    • Default value _: string = ""

    Returns any | number | string | boolean | null

    the object to serialize with JSON.stringify

toString

  • toString(): string

valueOf

  • valueOf(): string