Skip to content

Commit

Permalink
fix(line): add missing pointSymbol prop to typings
Browse files Browse the repository at this point in the history
  • Loading branch information
latema authored and plouc committed Oct 19, 2019
1 parent d7c1da5 commit c249df8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/line/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,14 @@ declare module '@nivo/line' {
}
export type SliceTooltip = React.FunctionComponent<SliceTooltipProps>

export interface PointSymbolProps {
borderColor: string
borderWidth: number
color: string
datum: Datum
size: number
}

export interface LineProps {
data: Serie[]

Expand Down Expand Up @@ -143,6 +151,7 @@ declare module '@nivo/line' {
gridYValues?: number | number[] | string[] | Date[]

enablePoints?: boolean
pointSymbol?: (props: Readonly<PointSymbolProps>) => React.ReactNode
pointSize?: number
pointColor?: any
pointBorderWidth?: number
Expand Down

0 comments on commit c249df8

Please sign in to comment.