isPaletteSlot
Whether a value names any palette colour.
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { isPaletteSlot } from "@mapcairn/core";
function isPaletteSlot(value: unknown): value is CategoricalSlot | OrdinalSlot;
Parameters
value(unknown)
Returns
value is CategoricalSlot | OrdinalSlot