This should solve two issues. First is that typescript is complaining about using a Point as the value for the from prop and the second is that if you do use a Point or an object if any of the coordinates values are 0 it fires off a warning because 0 is falsy.
This should solve two issues. First is that typescript is complaining about using a Point as the value for the
from
prop and the second is that if you do use aPoint
or an object if any of the coordinates values are0
it fires off a warning because0
is falsy.This may need some further work, not sure!