Skip to content

Commit

Permalink
[chore] Fix ColorMap type (#2388)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <[email protected]>
Co-authored-by: Ilya Boyandin <[email protected]>
  • Loading branch information
igorDykhta and ilyabo authored Oct 22, 2023
1 parent 08492a8 commit dde3a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/constants/src/color-ranges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import colorbrewer from 'colorbrewer';
import {HexColor} from '@kepler.gl/types';
import {VizColorPalette} from './custom-color-ranges';

export type ColorMap = [string | number | null, HexColor][];
export type ColorMap = [string[] | string | number | null, HexColor][];
// Key is HexColor but as key we can use only string
export type ColorLegends = {[key: string]: string};

Expand Down

0 comments on commit dde3a6e

Please sign in to comment.