variable / @typed/id

Ulid

Effect Schema and branded string type for canonical ULID values.

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

Import

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

Signatures

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

Why

The schema validates values at transport boundaries; encoded time does not imply a total order across independent generators.

Ownership and lifetime

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

Examples

import { Ulid } from "@typed/id/Ulid"
const id = Ulid.make("01ARZ3NDEKTSV4RRFFQ69G5FAV")

Other public imports

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

Source