Skip to content

Commit

Permalink
adding missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
Maja Grubic committed Oct 3, 2019
1 parent 2b03cf7 commit 3d87a04
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ export function getColorForDataType(type: string) {
return colors[colorIndex];
}

export type UnwrapArray<T> = T extends Array<infer P> ? P : T;

export function LensFieldIcon({ type }: { type: DataType }) {
const classes = classNames(
'lnsFieldListPanel__fieldIcon',
Expand Down

0 comments on commit 3d87a04

Please sign in to comment.