Home > @gooddata/sdk-ui > Flatten
Flatten array type.
export declare type Flatten<T> = T extends Array<infer A> ? A : T;
If the type is not an array, return the same type. Works only for 1 level, nested array types are not recursively flattened.
number is resolved as number string is resolved as string string is resolved as string