Fundamentals
    Preparing search index...

    Class Guid

    Represents a Guid according to the http://www.ietf.org/rfc/rfc4122.txt

    Guid

    Implements

    Index

    Constructors

    • Initializes a new instance of the {Guid} class.

      Parameters

      • bytes: number[] | Uint8Array<ArrayBufferLike> | undefined

        The 16 bytes that represents a {Guid}.

      Returns Guid

    Properties

    bytes: number[] | Uint8Array<ArrayBufferLike> | undefined

    The 16 bytes that represents a {Guid}.

    empty: Guid = ...

    Gets an empty {Guid}

    Methods

    • Check whether this is equal to other.

      Parameters

      • other: object

      Returns boolean

    • Converts the {Guid} to a string that works in JSON serialization.

      Returns string

    • Return a string representation of the {Guid} in the format: 00000000-0000-0000-0000-000000000000

      Returns string

    • Parses if the type is a string parse, otherwise pass through the input as desired output type.

      Type Parameters

      • T extends Guid = Guid

        Type to handle for

      Parameters

      • input: string | T

        String or the generic type.

      Returns T

      identifier Parsed or passed through

    • Check if a string is a valid {Guid}

      Parameters

      • value: string

        Value to check.

      Returns boolean

      True if it is, false if not.

    • Parses a string and turns it into a {Guid}.

      Parameters

      • guid: string

        String representation of guid.

      Returns Guid