export type LegendDirection = 'row' | 'column'; export interface LegendScale { domain: Array; range: Array; } export interface LegendProps { direction?: LegendDirection; scale: LegendScale; }