Skip to content

Conversation

azizhk
Copy link
Collaborator

@azizhk azizhk commented Mar 24, 2020

This is just finishing the work in #183

I think this is important to mention that discriminated unions work only on value checks and not on typeof checks.

@eps1lon eps1lon changed the title Correct the section about discrinated types docs(advanced) Correct the section about discrinated types Mar 24, 2020
@eps1lon eps1lon merged commit 1ab7dd2 into typescript-cheatsheets:master Mar 24, 2020
@eps1lon
Copy link
Member

eps1lon commented Mar 24, 2020

@azizhk That makes a lot more sense to me. Didn't know about the typeof limitation. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants