Skip to content

Commit

Permalink
fix(core): import missing SVGProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Dec 17, 2021
1 parent cd6e3ec commit feb6de6
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions packages/core/index.d.ts
Expand Up @@ -246,19 +246,22 @@ declare module '@nivo/core' {
| 'stepBefore'

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

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

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

export type LinearGradientDef = {
id: string
Expand Down

0 comments on commit feb6de6

Please sign in to comment.