danvk / effective-typescript

Effective TypeScript 2nd Edition: 83 Specific Ways to Improve Your TypeScript
https://effectivetypescript.com
Other
1.56k stars 229 forks source link

The Hidden Side of Type Predicates #32

Open utterances-bot opened 8 months ago

utterances-bot commented 8 months ago

The Hidden Side of Type Predicates

Effective TypeScript: The Hidden Side of Type Predicates

https://effectivetypescript.com/2024/02/27/type-guards/?ck_subscriber_id=1871659840&utm_source=convertkit&utm_medium=email&utm_campaign=%E2%9A%9B%EF%B8%8F+This+Week+In+React+

lgenzelis commented 8 months ago

Really interesting post! I've definitely never thought about type predicates this way before.

dest1n1s commented 4 months ago

Helps a lot in understanding how TypeScript type guards work.