MeasureOf
Home > @gooddata/sdk-ui > MeasureOf
MeasureOf type
Generate union of measures from union of measure definitions.
Signature:
export type MeasureOf<T extends IMeasureDefinitionType> = T extends any ? IMeasure<T> : never;
References: IMeasureDefinitionType, IMeasure
Example
- IMeasureDefinition | IArithmeticMeasureDefinition is resolved as IMeasure<IMeasureDefinition> | IMeasure<IArithmeticMeasureDefinition>