Skip to content

Commit

Permalink
fix use of non-existent type
Browse files Browse the repository at this point in the history
doesn't look like OpaqueInterpolation has been around for a while
replaced with Interpolation, per the return type of useAnimatePath and
the associated d3-interpolate annotations
  • Loading branch information
Callum Mellor-Reed committed Jan 14, 2021
1 parent bb75a14 commit a376a61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react'
import { OpaqueInterpolation, SpringConfig } from 'react-spring'
import { Interpolation, SpringConfig } from 'react-spring'

declare module '@nivo/core' {
export type DatumValue = string | number | Date
Expand Down Expand Up @@ -205,7 +205,7 @@ declare module '@nivo/core' {
| 'stepAfter'
| 'stepBefore'

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

export type LinearGradientDef = {
id: string
Expand Down

0 comments on commit a376a61

Please sign in to comment.