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