Synclets logoSynclets

isTimestamp

The isTimestamp function is a type guard that identifies Timestamp values.

isTimestamp(thing: unknown): thing is Timestamp
TypeDescription
thingunknown

The value to test.

returnsthing is Timestamp

True if the value is a valid Timestamp.

This function checks whether a value conforms to the Timestamp type, which is a string representing a Hybrid Logical Clock (HLC) timestamp. Use this for runtime validation of timestamp data before processing.

Since

v0.0.0