variable / @typed/id

Uuid5

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

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

Import

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

Signatures

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

Why

The schema verifies UUID version and variant at transport boundaries before restoring the compile-time brand.

Ownership and lifetime

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

Examples

import { Uuid5 } from "@typed/id/Uuid5"
import { Schema } from "effect"
const id = Schema.decodeUnknownSync(Uuid5)("21f7f8de-8051-5b89-8680-0195ef798b6a")

Other public imports

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

Source