Skip to content

Commit

Permalink
fix(chord): fix missing typescript properties (#1636)
Browse files Browse the repository at this point in the history
- legends was missing
- ribbonBorderColor was missing the type
  • Loading branch information
Francisco committed Jun 29, 2021
1 parent 86c5d81 commit 8752e39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/chord/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import { Component } from 'react'
import { Box, MotionProps, Dimensions, Theme } from '@nivo/core'
import { OrdinalColorScaleConfig, InheritedColorConfig } from '@nivo/colors'
import { LegendProps } from '@nivo/legends'

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>

Expand Down Expand Up @@ -73,14 +74,16 @@ declare module '@nivo/chord' {
ribbonHoverOpacity?: number
ribbonHoverOthersOpacity?: number
ribbonBorderWidth?: number
BorderColor?: InheritedColorConfig
ribbonBorderColor?: InheritedColorConfig

enableLabel?: boolean
labelOffset?: number
labelRotation?: number
labelTextColor?: InheritedColorConfig

isInteractive?: boolean

legends?: LegendProps[]
}

export type ChordProps = CommonChordProps &
Expand Down

0 comments on commit 8752e39

Please sign in to comment.