Coming soon - Get a detailed view of why an account is flagged as spam!
view details
13
A boolean type becomes true | false when being distributed in a union type
Post Body

Playground

When using a distributed conditional type, a boolean type becomes true | false. Kind of annoying, since [true, false] in the Playground example becomes an invalid type. What's the reason behind this?

Author
Account Strength
90%
Account Age
8 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,041
Link Karma
556
Comment Karma
485
Profile updated: 3 days ago
Posts updated: 4 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago