Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
[chore] Fix ColorMap type (#2388)
Igor Dykhtadde3a6e355bd
diff --git a/src/constants/src/color-ranges.ts b/src/constants/src/color-ranges.tsindex 4123f2b0f..beb0c005b 100644--- a/src/constants/src/color-ranges.ts+++ b/src/constants/src/color-ranges.ts@@ -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 stringexport type ColorLegends = {[key: string]: string};