Skip to content

Commit

Permalink
fix(tooltip): update tooltip TypeScript types. (#657)
Browse files Browse the repository at this point in the history
- removed theme= from Basic/TableTooltip
- define Chip
  • Loading branch information
nfvs authored and plouc committed Nov 20, 2019
1 parent d1efd7d commit 305a536
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/tooltip/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ declare module '@nivo/tooltip' {
color: string
format?: (value: number | string) => number | string
renderContent?: () => React.ReactNode
theme: Pick<Theme, 'tooltip'>
}

export class BasicTooltip extends React.Component<BasicTooltipProps> {}

export interface ChipProps {
color: string
size?: number
style?: Partial<React.CSSProperties>
}

export class Chip extends React.Component<ChipProps> {}

export interface TableTooltipProps {
title?: React.ReactNode
rows: React.ReactNode[][]
theme: Pick<Theme, 'tooltip'>
renderContent?: () => React.ReactNode
}

Expand Down

0 comments on commit 305a536

Please sign in to comment.