Replies: 1 comment 1 reply
-
Haha wow! that's rather interesting! I honestly have no idea. I've been avoiding structural types throughout my adventures through Scala. How useful will this be? is there a subtype relationship between structural types where one is a subset of the other? would this be transitive between types? Do you know how and if |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose we have a type defined in TypeScript like this:
The idea is to also generate the following helper:
With the help of the
=:=
instance, other JS types that contain afield: Double
can be converted toMyType
safely.Beta Was this translation helpful? Give feedback.
All reactions