Uuid overview
Added in v1.0.0
Table of contents
utils
Uuid
Signature
export declare const Uuid: Brand.Brand.Constructor<Uuid>
Added in v1.0.0
Uuid (type alias)
Signature
export type Uuid = string & Brand.Brand<"@typed/id/UUID">
Added in v1.0.0
UuidSeed (type alias)
Signature
export type UuidSeed = readonly [
zero: number,
one: number,
two: number,
three: number,
four: number,
five: number,
six: number,
seven: number,
eight: number,
nine: number,
ten: number,
eleven: number,
twelve: number,
thirteen: number,
fourteen: number,
fifteen: number
]
Added in v1.0.0
isUuid
Returns true
if a string is a UUID.
Signature
export declare const isUuid: (value: string) => value is Uuid
Added in v1.0.0
makeUuid
Signature
export declare const makeUuid: Effect.Effect<Uuid, never, GetRandomValues>
Added in v1.0.0
makeUuidSeed
Signature
export declare const makeUuidSeed: Effect.Effect<UuidSeed, never, GetRandomValues>
Added in v1.0.0
uuid4
Signature
export declare function uuid4(seed: UuidSeed): Uuid
Added in v1.0.0