Skip to content

Commit

Permalink
fix(bump): Add types for defs to AreaBumpSvgProps (#997)
Browse files Browse the repository at this point in the history
  • Loading branch information
recurser committed Jun 16, 2020
1 parent a98a072 commit da9ea7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/bump/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* file that was distributed with this source code.
*/
import { Component, MouseEvent } from 'react'
import { Dimensions, Box, Theme, MotionProps, CssMixBlendMode } from '@nivo/core'
import { Dimensions, Box, Theme, MotionProps, SvgDefsAndFill, CssMixBlendMode } from '@nivo/core'
import { OrdinalColorsInstruction, InheritedColorProp } from '@nivo/colors'

declare module '@nivo/bump' {
Expand Down Expand Up @@ -172,7 +172,7 @@ declare module '@nivo/bump' {
tooltip?: any
}

export type AreaBumpSvgProps = AreaBumpProps & MotionProps
export type AreaBumpSvgProps = AreaBumpProps & MotionProps & SvgDefsAndFill<BumpInputDatum>
export class AreaBump extends Component<AreaBumpSvgProps & Dimensions> {}
export class ResponsiveAreaBump extends Component<AreaBumpSvgProps> {}
}

0 comments on commit da9ea7f

Please sign in to comment.