Skip to content

Commit

Permalink
fix(core): export linearGradientDef in typings
Browse files Browse the repository at this point in the history
  • Loading branch information
victoransel1 authored and plouc committed Dec 17, 2021
1 parent 7f68c58 commit 7cfbfc9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions packages/core/index.d.ts
Expand Up @@ -246,6 +246,19 @@ declare module '@nivo/core' {
| 'stepBefore'

export function useAnimatedPath(path: string): Interpolation<string>

export type GradientColor = {
offset: number
color: string
opacity?: number
}

export function linearGradientDef(id: string, colors: GradientColor[], options?: SVGProps<SVGLinearGradientElement>
): {
id: string
type: 'linearGradient'
colors: GradientColor[]
} & SVGProps<SVGLinearGradientElement>

export type LinearGradientDef = {
id: string
Expand Down

0 comments on commit 7cfbfc9

Please sign in to comment.