variable / @typed/id/Uuid4

Uuid4

Effect Schema and branded string type for RFC UUID version 4 values.

Package version
1.0.0-beta.7
Category
ID schemas
Since
1.0.0

Import

import { Uuid4 } from "@typed/id/Uuid4";

Signatures

export declare const Uuid4: Schema.brand<Schema.String, "@typed/id/UUID4">;
export type Uuid4 = typeof Uuid4.Type;

Why

The schema verifies version and variant bits before restoring the compile-time brand after transport.

Ownership and lifetime

This module-level schema value acquires no resources and is shared; no runtime freezing guarantee is implied.

Examples

import { Uuid4 } from "@typed/id/Uuid4"
const id = Uuid4.make("550e8400-e29b-41d4-a716-446655440000")

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source