---
title: "Discussion on \"Type checking unknown objects in typescript\" | Hashnode"
description: "Discussion on \"Type checking unknown objects in typescript\". Explanation of Problem\nImagine a reusable angular component which emits an unknown value. I recently came across this in an app which has a reusable modal for confirming an action. It takes in an unknown object which it also outputs when the action i..."
url: "https://hashnode.com/posts/type-checking-unknown-objects-in-typescript/643984c49aedea9d9a7d7a06"
---

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

Discussion

# [Type checking unknown objects in typescript](https://techblog.timhilton.xyz/type-checking-unknown-objects-in-typescript?utm_source=hashnode&utm_medium=feed)

Explanation of Problem Imagine a reusable angular component which emits an unknown value. I recently came across this in an app which has a reusable modal for confirming an action. It takes in an unknown object which it also outputs when the action i...

Apr 14, 2023 · 3 min read · techblog.timhilton.xyz  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#angular](https://hashnode.com/tag/angular)

## Written by

[Tim Hilton](https://hashnode.com/@tjhilton)

@tjhilton

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

## Responses

Markdown supported · ⌘↵ to post

[Tim Hilton](https://hashnode.com/@tjhilton)

[Mar 18, 2024](https://hashnode.com/posts/type-checking-unknown-objects-in-typescript/643984c49aedea9d9a7d7a06/comment/65f8164981fd393af03fe631)

Related: typescript 5.5 will contain type checking improvements.

[totaltypescript.com/type-predicate-inference](https://www.totaltypescript.com/type-predicate-inference)
