diff --git a/x-pack/legacy/plugins/lens/public/indexpattern_plugin/lens_field_icon.tsx b/x-pack/legacy/plugins/lens/public/indexpattern_plugin/lens_field_icon.tsx index 3a13ed7830e066..000be2ddf4d49c 100644 --- a/x-pack/legacy/plugins/lens/public/indexpattern_plugin/lens_field_icon.tsx +++ b/x-pack/legacy/plugins/lens/public/indexpattern_plugin/lens_field_icon.tsx @@ -31,6 +31,8 @@ export function getColorForDataType(type: string) { return colors[colorIndex]; } +export type UnwrapArray = T extends Array ? P : T; + export function LensFieldIcon({ type }: { type: DataType }) { const classes = classNames( 'lnsFieldListPanel__fieldIcon',