GRANULARITY\_DESCRIPTORS
Home > @gooddata/sdk-model > GRANULARITY_DESCRIPTORS
GRANULARITY_DESCRIPTORS variable
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Canonical registry of every DateAttributeGranularity.
Signature:
GRANULARITY_DESCRIPTORS: Record<DateAttributeGranularity, IGranularityDescriptor>
Remarks
Keyed on the full union so that adding a new granularity to DateAttributeGranularity is a compile error here until its descriptor is provided — the registry is the single point that must be extended.