---
title: "Discussion on \"Type-Safe TypeScript with Type Narrowing\" | Hashnode"
description: "Discussion on \"Type-Safe TypeScript with Type Narrowing\". 1. Introduction\n2. Equality Narrowing\n3. typeof\n4. Truthiness Narrowing\n5. instanceof\n6. Discriminated Union\n7. in Type Guard\n8. Type Predicate\n9. Type Narrowing against unknown\n9.1. Manual Validation\n9.2. Automatic Validation: zod\n\n\n10. Assertion Fu..."
url: "https://hashnode.com/posts/type-safe-typescript-with-type-narrowing/6367d17f95f4143596cffc64"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Type-Safe TypeScript with Type Narrowing](https://rainerhahnekamp.hashnode.dev/type-safe-typescript-with-type-narrowing?utm_source=hashnode&utm_medium=feed)

1\. Introduction 2. Equality Narrowing 3. typeof 4. Truthiness Narrowing 5. instanceof 6. Discriminated Union 7. in Type Guard 8. Type Predicate 9. Type Narrowing against unknown 9.1. Manual Validation 9.2. Automatic Validation: zod 10. Assertion Fu...

Nov 6, 2022 · 15 min read · rainerhahnekamp.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#frontend-development](https://hashnode.com/tag/frontend-development)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Rainer Hahnekamp](https://hashnode.com/@rainerhahnekamp)

@rainerhahnekamp · Austria

  
[View profile](https://hashnode.com/@rainerhahnekamp)

Trainer & Consultant at AngularArchitects

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
