Monthly Archives: May 2022

TypeScript: custom type guards

Type guards are tools for type narrowing in TypeScript. You may have used some of those features e.g. typeof, instanceof, in etc. already but I want to describe writing guards for types created by you.

Posted in TypeScript | Tagged , | Comments Off on TypeScript: custom type guards