Skip to content

Commit

Permalink
feat(line): add missing types (#605)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodmansw authored and Raphaël Benitte committed Jun 27, 2019
1 parent 9b15751 commit f856200
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/axes/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ declare module '@nivo/axes' {
export type TickFormatter = (value: number | string | Date) => string | number

export interface AxisProps {
orient?: 'top' | 'right' | 'bottom' | 'left'
tickValues?: number | number[] | string[] | Date[] | string
tickSize?: number
tickPadding?: number
Expand Down
1 change: 1 addition & 0 deletions packages/legends/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ declare module '@nivo/legends' {
symbolSize?: number
symbolSpacing?: number
symbolShape?: LegendSymbolShape | any
symbolBorderColor?: string
textColor?: string

onClick?: LegendMouseHandler
Expand Down
2 changes: 2 additions & 0 deletions packages/line/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ declare module '@nivo/line' {

export interface LineSvgProps extends LineProps, MotionProps {
enablePointLabel?: boolean
pointLabel?: string
pointLabelYOffset?: number
areaBlendMode?: string
useMesh?: boolean
}
Expand Down

0 comments on commit f856200

Please sign in to comment.