Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
lemps committed Oct 3, 2024
1 parent 9a8ecb7 commit 6d4de7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bar/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Theme,
ValueFormat,
} from '@nivo/core'
import { InheritedColorConfig, OrdinalColorScaleConfig } from '@nivo/colors'
import { InheritedColorConfig, OrdinalColorScale, OrdinalColorScaleConfig } from '@nivo/colors'
import { LegendProps } from '@nivo/legends'
import { AnyScale, ScaleSpec, ScaleBandSpec } from '@nivo/scales'
import { SpringValues } from '@react-spring/web'
Expand Down Expand Up @@ -124,7 +124,7 @@ interface BarCustomLayerBaseProps<RawDatum>

xScale: AnyScale
yScale: AnyScale
getColor: OrdinalColorScaleConfig<ComputedDatum<RawDatum>>
getColor: OrdinalColorScale<ComputedDatum<RawDatum>>
}

export interface BarCustomLayerProps<RawDatum>
Expand Down

0 comments on commit 6d4de7b

Please sign in to comment.