Open sndrs opened 5 years ago
leaving this here in case it helps https://medium.com/@wittydeveloper/typescript-make-types-real-the-type-guard-functions-814364e8dbe3
Sorry @sndrs I have had just zero headspace to dedicate to this problem. I’m reasonably sure it can be achieved using genetics (eg passing a type parameter to the from object) but I haven’t had time to experiment
typescript should know what is available on
from.
,until.
etc.how, do not know...