Range
function definition returns a number
instead of a Color
#298
Labels
bug
Something isn't working
Range
function definition returns a number
instead of a Color
#298
I'm trying to use
Color.range(color2)
to interpolate between two colors. However, TypeScript is complaining that the function returned fromrange()
returns anumber
instead of aColor
. The documentation states that this function returns aColor
, and in runtime, the object is indeed aColor
.Looking at the TypeScript definition, it seems that this function is defined to return a number:
Do I misunderstand the API, or is there a mistake in the TypeScript definition?
The text was updated successfully, but these errors were encountered: