Skip to content

Commit

Permalink
fix(line): typings fix for custom layer props (#887)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartlong committed May 19, 2020
1 parent 9b1ed9c commit a293a64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/line/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ declare module '@nivo/line' {
| 'legends'

export interface CustomLayerProps extends Omit<LineSvgProps, 'xScale' | 'yScale'> {
innerHeight: number
innerWidth: number
lineGenerator: (data: Datum[]) => string
points: Point[]
series: ComputedSerie[]
xScale: ScaleFunc
yScale: ScaleFunc
}
Expand Down

0 comments on commit a293a64

Please sign in to comment.