Discriminated Unions in TypeScript, Effect, and ArkType by David Blass (Effect Days 2024)

Опубликовано: 06 Октябрь 2024
на канале: Effect | TypeScript at Scale
1,946
73

Get Effect support from the community →   / discord  

Effect is an ecosystem of tools to build better applications and libraries in TypeScript.

Website & docs: https://effect.website/
Community:   / discord  
X (Twitter):   / effectts_  
Github: https://github.com/Effect-TS

______________________________________

Effect Days 2024 was sponsored by:

Inato - https://inato.com/
Evryg - https://www.evryg.com/
Effectful Technologies - https://effectful.co/

______________________________________

David Blass gave us a deeper understanding of the set theory at the heart of TypeScript and how libraries like Effect and ArkType leverage it to improve static and runtime performance and make your code safer.

Highlights:

→ Introducing discriminated unions and set-based types in TypeScript.
→The benefits of discriminated unions, including constant time checks and better error messages.
→ The practical application of discriminated unions in TypeScript and Effect, showcasing their power in pattern matching.

______________________________________

David Blass is an open-source TypeScript developer working on ArkType - a native type syntax optimized from editor to runtime.

Learn more about and follow David:
X (Twitter):   / ssalbdivad  
Github: https://github.com/ssalbdivad
ArkType: https://arktype.io/

______________________________________

#Effect #TypeScript #TypeScriptLibrary #ArkType