Home > @uniformdev/canvas > FlattenValues
FlattenValues type
Signature:
type FlattenValues<T extends DataWithProperties> = T extends Pick<ComponentInstance, 'parameters'> ? Record<string, unknown> & {
[Property in keyof T['parameters']]: FlattenProperty<T['parameters'][Property]>;
} : T extends Pick<EntryData, 'fields'> ? Record<string, unknown> & {
[Property in keyof T['fields']]: FlattenProperty<T['fields'][Property]>;
} : unknown;
References: DataWithProperties, EntryData