Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Guid

Global unique identifiers, RFC4122 v4 compatible.

Hierarchy

  • Guid

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Guid(g: string): Guid
  • Create a new Guid.

    Parameters

    • g: string

      A GUID formatted string.

    Returns Guid

Properties

Private guid

guid: string

Internal string representation of the GUID.

Methods

toJSON

  • toJSON(): Object
  • Returns the GUID formatted for JSON

    Returns Object

toString

  • toString(): string
  • Returns the GUID formatted as a string.

    Returns string

Static newGuid

  • Creates a new GUID class. Conforms to RFC4122 v4.

    Returns Guid

    string Formatted RFC4122 v4 GUID.

Static parse

  • parse(guid: string): Guid
  • Creates a new Guid from a string. If it is a valid RFC4122 v4 GUID, it returns the Guid object, null otherwise.

    Parameters

    • guid: string

    Returns Guid

Generated using TypeDoc