Closed lritter79 closed 6 months ago
interesting, I don't usually encounter this - perhaps because the tickFormatter
s are defined inline (making types inferred).
quick workaround is to write { valueOf(): number }
instead of number
(this is just a broader type(
Consider the following yScale:
Here's my tick formatter function:
This is the axis I'd like to pass it to:
I'm getting the following TS error:
I can't import
NumberValue
as a type from anywhere. What do I do?