Skip to content

Commit

Permalink
fix(line): get working with scales updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed Jun 22, 2021
1 parent 48880b4 commit c2e9631
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/line/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
} from '@nivo/core'
import { OrdinalColorScaleConfig } from '@nivo/colors'
import { LegendProps } from '@nivo/legends'
import { Scale, ScaleFunc } from '@nivo/scales'
import { ScaleSpec, Scale } from '@nivo/scales'
import { AxisProps, TicksSpec } from '@nivo/axes'
import { CrosshairType } from '@nivo/tooltip'
import { Line as D3Line } from 'd3-shape'
Expand Down Expand Up @@ -72,8 +72,8 @@ declare module '@nivo/line' {
lineGenerator: D3Line<Array<ComputedDatum['position']>>
points: Point[]
series: ComputedSerie[]
xScale: ScaleFunc
yScale: ScaleFunc
xScale: Scale<unknown, unknown>
yScale: Scale<unknown, unknown>
}

export type CustomLayer = (props: CustomLayerProps) => React.ReactNode
Expand Down Expand Up @@ -132,9 +132,9 @@ declare module '@nivo/line' {
export interface LineProps {
data: Serie[]

xScale?: Scale
xScale?: ScaleSpec
xFormat?: ValueFormat<DatumValue>
yScale?: Scale
yScale?: ScaleSpec
yFormat?: ValueFormat<DatumValue>

layers?: Layer[]
Expand Down

0 comments on commit c2e9631

Please sign in to comment.