Type alias RegistryTimestampKeyedValues<T>

RegistryTimestampKeyedValues<T>: {
    [timestamp: string]: T;
}

A field keyed by timestamps to document the evolution of the field. Each timestamp must be provided in simplified extended ISO 8601 format, a 24-character string of format YYYY-MM-DDTHH:mm:ss.sssZ where timezone is zero UTC (denoted by Z). Note, this is the format returned by ECMAScript Date.toISOString().

For example, to insert a new value:

const result = { ...previousValue, [(new Date()).toISOString()]: newValue };

Type Parameters

  • T

Type declaration

  • [timestamp: string]: T

Generated using TypeDoc