Skip to content

createOpaqueTimestampId

createOpaqueTimestampId<Brand>(brand, opts): OpaqueTimestampCodec<Brand>

Defined in: src/codecs/opaque/index.ts:135

Creates an Opaque Timestamp codec for brand (three lowercase a–z characters).

Brand extends string

Brand & ValidBrand<Brand>

Entity type brand validated once at construction.

OpaqueTimestampOptions

Required key (an OpaqueKey from importOpaqueKey) plus optional now, rng, and allowDuplicateBrand overrides.

OpaqueTimestampCodec<Brand>