getGranularityDescriptor()
Home > @gooddata/sdk-model > getGranularityDescriptor
getGranularityDescriptor() function
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.
Returns the descriptor for a granularity, or undefined if not a known DateAttributeGranularity.
Signature:
export declare function getGranularityDescriptor(granularity: string | undefined): IGranularityDescriptor | undefined;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
granularity |
string | undefined |
Returns:
IGranularityDescriptor | undefined