Skip to main content

Class: Uuid

Constructors

new Uuid()

new Uuid(): Uuid

Returns

Uuid

Methods

generate()

static generate(): string

Returns

string

Defined in

Uuid.ts:3


isValid()

static isValid(uuid): boolean

Tests if a string is a valid UUID.

Parameters

uuid: undefined | null | string

the string to test

Returns

boolean

true if the string is a valid UUID

Remarks

Will match UUID versions 1 through 8, plus the nil UUID.

Defined in

Uuid.ts:44