Codú
‹ Back to feed

// Stefan Judis · 3 April 2026

The scope of type guards and assertion functions (#tilPost)

I've just read Absorbing unknown Into the Type Realm. It's a good read, check it out. However I also learned an important difference between TypeScript type guards and assertion functions. And to be fair, I didn't even know assertion functions were a thing in TypeScript. Let's look at a standard typ...

Stefan Judis
@stefan-judis
www.stefanjudis.com
Read Full Article at www.stefanjudis.com
Stefan Judis@stefan-judis

Discussion 0

Loading

Got something to say?

or to join the conversation.

Learn to build with AI and grow with people doing the same — it's free.