Skip to content

Commit

Permalink
fix(core): export ThemeProvider in typings (#1547)
Browse files Browse the repository at this point in the history
  • Loading branch information
wyze committed May 26, 2021
1 parent 37c89e0 commit b820166
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ declare module '@nivo/core' {
}) => JSX.Element
export const ResponsiveWrapper: ResponsiveWrapperType

interface ThemeProviderProps {
theme?: Theme
}

type ThemeProviderType = (props: React.PropsWithChildren<ThemeProviderProps>) => JSX.Element
export const ThemeProvider: ThemeProviderType

export function getDistance(x1: number, y1: number, x2: number, y2: number): number
export function getAngle(x1: number, y1: number, x2: number, y2: number): number

Expand Down

0 comments on commit b820166

Please sign in to comment.