Skip to content

TimestampOptions

TimestampOptions = object

Defined in: src/codecs/timestamp/index.ts:18

Configuration options for a codec instance.

optional allowDuplicateBrand?: boolean

Defined in: src/codecs/timestamp/index.ts:24

If true, silences the duplicate-brand warning in non-production environments.


optional now?: () => number

Defined in: src/codecs/timestamp/index.ts:20

Returns the current timestamp in milliseconds. Defaults to Date.now.

number


optional rng?: (target) => void

Defined in: src/codecs/timestamp/index.ts:22

Writes random bytes into target for ID generation. Defaults to a crypto.randomUUID fast path.

Uint8Array

void