diff --git a/packages/core/index.d.ts b/packages/core/index.d.ts index 5b743d9b1b..c7f8eb9270 100644 --- a/packages/core/index.d.ts +++ b/packages/core/index.d.ts @@ -246,19 +246,22 @@ declare module '@nivo/core' { | 'stepBefore' export function useAnimatedPath(path: string): Interpolation - + export type GradientColor = { - offset: number - color: string - opacity?: number + offset: number + color: string + opacity?: number } - export function linearGradientDef(id: string, colors: GradientColor[], options?: SVGProps + export function linearGradientDef( + id: string, + colors: GradientColor[], + options?: React.SVGProps ): { id: string type: 'linearGradient' colors: GradientColor[] - } & SVGProps + } & React.SVGProps export type LinearGradientDef = { id: string