Options
All
  • Public
  • Public/Protected
  • All
Menu

Package uuid

@typed/uuid

Cross-platform UUID v4 implementation

Index

Type aliases

Uuid

Uuid: NewType<string, "Uuid">

UuidSeed

UuidSeed: keyof [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]

Variables

Const VALID_UUID_LENGTH

VALID_UUID_LENGTH: 16 = 16

Const isBrowser

isBrowser: boolean = typeof crypto !== 'undefined'

Const isUuid

isUuid: (value: string) => value is Uuid = isNewType((value: string): value is Uuid =>uuidPattern.test(value),)

Returns true if a string is a UUID.

name

isUuid(value: string): value is Uuid

Type declaration

    • (value: string): value is Uuid
    • Parameters

      • value: string

      Returns value is Uuid

Functions

uuid

uuid4

withUuid

  • withUuid<A>(f: (uuid: Uuid) => A): Effects<UuidEnv, A>

Generated using TypeDoc