TimestampOptions
TimestampOptions =
object
Defined in: src/codecs/timestamp/index.ts:18
Configuration options for a codec instance.
Properties
Section titled “Properties”allowDuplicateBrand?
Section titled “allowDuplicateBrand?”
optionalallowDuplicateBrand?:boolean
Defined in: src/codecs/timestamp/index.ts:24
If true, silences the duplicate-brand warning in non-production environments.
optionalnow?: () =>number
Defined in: src/codecs/timestamp/index.ts:20
Returns the current timestamp in milliseconds. Defaults to Date.now.
Returns
Section titled “Returns”number
optionalrng?: (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.
Parameters
Section titled “Parameters”target
Section titled “target”Uint8Array
Returns
Section titled “Returns”void