PlaceholderValue
Home > @gooddata/sdk-ui > PlaceholderValue
PlaceholderValue type
Get placeholder value type.
Signature:
export declare type PlaceholderValue<T> = T extends IPlaceholder<infer A> ? A : T extends IComposedPlaceholder<infer B, any, any> ? B : T;
References: IPlaceholder, IComposedPlaceholder
Remarks
If the type is not a placeholder, return the same type.
Example
IPlaceholder\<IAttribute\> is resolved as IAttribute
IPlaceholder\<IAttribute[]\> is resolved as IAttribute[]
IComposedPlaceholder\<IMeasure\> is resolved as IMeasure
null is resolved as null