From 3d87a043dd71a2c48259d41a98929075c7526f41 Mon Sep 17 00:00:00 2001 From: Maja Grubic Date: Thu, 3 Oct 2019 12:18:13 +0100 Subject: [PATCH] adding missing type --- .../plugins/lens/public/indexpattern_plugin/lens_field_icon.tsx | 2 ++ 1 file changed, 2 insertions(+) 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 3a13ed7830e06..000be2ddf4d49 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',