Skip to content

Type Alias: InferTimeDimensionKeys\<K\>

InferTimeDimensionKeys<K> = K extends AugmentedRegistry<MetricRegistry> ? { [P in keyof MetricDimensionMeta<K>]: MetricDimensionMeta<K>[P] extends { time_grain: unknown } ? P : never }[keyof MetricDimensionMeta<K>] : string

The dimension keys of K that are TEMPORAL — i.e. carry a time_grain tuple in the generated metadata. Only these can be a timeDimension. Degrades to string for an unknown key.

K