Skip to content
Logo Theodo

Article from Fatine Benhsain

TypeScript: How Type Guards Can Help You Get Rid of 'as'

Fatine Benhsain9 min read

TS logo

In TypeScript (TS), the "as" keyword is widely used when manipulating types. However, you should employ it with caution, as it does not provide any guarantee on the real types of your objects and could generate unexpected bugs. In this…

Continue reading →