Skip to content

Commit

Permalink
fix(scatterplot): fix no implicit any error on CustomTooltip (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartlong committed May 16, 2020
1 parent 0bb895f commit 7ad8ba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/scatterplot/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ declare module '@nivo/scatterplot' {
sizes: [number, number]
}

export type CustomTooltip = ({ node: Node }) => React.ReactNode
export interface TooltipProps {
node: Node
}
export type CustomTooltip = (props: TooltipProps) => React.ReactNode

type Scale = (value: Value) => number

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"sourceMap": true,
"jsx": "react",
"moduleResolution": "node",
"esModuleInterop": true
"esModuleInterop": true,
"noImplicitAny": true
},
"include": ["./packages/*/index.d.ts"]
}

0 comments on commit 7ad8ba7

Please sign in to comment.