Replies: 1 comment
-
After referring to this discussion, I discovered that
It would still be interesting to understand the answer to my question:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to use a union of records like this:
Objects that satisfy only one member of the union are valid: e.g.,
const config = { foo: 1, bar: 2 }
andconst config = { test: 'horse' };
are both valid.But objects that combine members of the union are invalid. e.g.,
const config = { foo: 1, test: 'horse' };
is invalid. Why?Is there another way that I can achieve this combining of record types?
Beta Was this translation helpful? Give feedback.
All reactions