Module / v1.0.0-beta.13

@typed/id/Cuid

5 unique exports available through this public import path, including their members and aliases.

import * as Cuid from "@typed/id/Cuid";

ID generation

  • cuid

    variable

    Generates one CUID from the current CuidState service.

ID schemas

  • Cuid

    variable

    Effect Schema and branded string type for 24-character CUID values.

ID types

  • CuidSeed

    type-alias

    The complete deterministic input used to derive one CUID.

ID validation

  • isCuid

    variable

    Tests whether a string is a valid branded CUID.

Sequence state

  • CuidState

    class

    Process-local Effect service that supplies sequential CUID seeds.