What is the current behavior?
Typed.Tooltip has formatter with first argument being ValueType | undefined instead of whatever comes from createHorizontalChart. Same goes for other arguments of formatter, and content prop.
What is the expected behavior?
It behaves like Typed.XAxis, and others.
Please provide a demo of the problem in a sandbox
https://stackblitz.com/edit/1snuausu?file=src%2FExample.tsx
(see HOVER OVER VARIABLE TYPES HERE comment)
(this is just first Lines demo but with Typed)
Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
3.8.0
it could be the case of me holding it wrong, but the recharts' typescript docs also never use Typed.Tooltip, which probably they should.
What is the current behavior?
Typed.Tooltiphasformatterwith first argument beingValueType | undefinedinstead of whatever comes fromcreateHorizontalChart. Same goes for other arguments offormatter, andcontentprop.What is the expected behavior?
It behaves like
Typed.XAxis, and others.Please provide a demo of the problem in a sandbox
https://stackblitz.com/edit/1snuausu?file=src%2FExample.tsx
(see
HOVER OVER VARIABLE TYPES HEREcomment)(this is just first Lines demo but with
Typed)Which versions of Recharts, and which browser / OS are affected by this issue? Did this work in previous versions of Recharts?
3.8.0
it could be the case of me holding it wrong, but the recharts' typescript docs also never use
Typed.Tooltip, which probably they should.