typing error when union of atoms are used #2707
Unanswered
double-thinker
asked this question in
Bug report
Replies: 2 comments 3 replies
-
This commit updates Updated PrdStore to use the |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yeah, it's not supported at the moment. We could do something similar to |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Bug Description
Using union of atoms in
get
andset
tirggers a typing error and the args, result and value are not correctly infered when possible. See the playground attached.Reproduction Link
https://www.typescriptlang.org/play/?#code/JYWwDg9gTgLgBAbzgQxhEAaOBjKBTVPAZTXzgF84AzKdOAIgCsIZlh6AoD7CAOwGd4g6HjgBeHPkIkRACgCUXHgPjJxKNCFkBGRcsFwARutTpZAckPnF3PgeQBVYxICyqABYA6KMl4ATM3k4AD44AAZPAFY4AH4UOAAuIzgAehSNdAAeTxzQgB8MkGzcpTt4AFcANWQAG3LRCWF8TwBzPBhZR0MgtLgYAE8wUTwoWigUfzgq2vq4YH44XhY53ioRvD8UBd5ykEMRuALBKGBeFq4mvE9+ds6nLAVxUPNePAB3a1T0gaG4EbGuL1ru0UFAWgtfJt8DBylBeHAAG4zUSnNZQUoqHAmTSZHZ7EZYADaeP2UAAulgSSNgjoHm0YFgbgzFkExKFdLZMZsJKYilSoETjqcWhS4EKzjTtHT2oyZSynnBzAFXtZOQZsA5uXA3DAvD5-IEQuEorEsUk-BdSFcmbINX4sOZkJ9ej9hqNoBxLsCOnasLovn1Bm6Afp4ONGlbvbbNQ6nT10uN5is0RstotdqSJptgEJ3BByjVNvt0-jxkcYCczhwgA
Beta Was this translation helpful? Give feedback.
All reactions