PlaceholdersValues
Home > @gooddata/sdk-ui > PlaceholdersValues
PlaceholdersValues type
Convert tuple of placeholders to tuple of their respective value types.
Signature:
export declare type PlaceholdersValues<Tuple extends [...any[]]> = {
[Index in keyof Tuple]: PlaceholderValue<Tuple[Index]>;
};
References: PlaceholderValue
Remarks
Check mapped tuple types for more details: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-1.html#mapped-types-on-tuples-and-arrays
Example
[IPlaceholder<IAttribute>, IPlaceholder<IAttribute[]>] is resolved as [IAttribute, IAttribute[]]