From 8752e39632b9393acd73b9a9d7f1090786ab97e5 Mon Sep 17 00:00:00 2001 From: Francisco Date: Tue, 29 Jun 2021 08:43:17 -0300 Subject: [PATCH] fix(chord): fix missing typescript properties (#1636) - legends was missing - ribbonBorderColor was missing the type --- packages/chord/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/chord/index.d.ts b/packages/chord/index.d.ts index f8ba3718f..5d4f8e11f 100644 --- a/packages/chord/index.d.ts +++ b/packages/chord/index.d.ts @@ -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 = Pick> @@ -73,7 +74,7 @@ declare module '@nivo/chord' { ribbonHoverOpacity?: number ribbonHoverOthersOpacity?: number ribbonBorderWidth?: number - BorderColor?: InheritedColorConfig + ribbonBorderColor?: InheritedColorConfig enableLabel?: boolean labelOffset?: number @@ -81,6 +82,8 @@ declare module '@nivo/chord' { labelTextColor?: InheritedColorConfig isInteractive?: boolean + + legends?: LegendProps[] } export type ChordProps = CommonChordProps &