---
title: "Discussion on \"Typescript : Defining types for destructured objects\" | Hashnode"
description: "Discussion on \"Typescript : Defining types for destructured objects\". Defining types when destructuring objects in typescript seems a bit confusing for beginners. So in this short article, I'll attempt to explain this concept in an easy and understandable way.\nLet's say we have an object\nconst user = { firstname: 'John..."
url: "https://hashnode.com/posts/typescript-defining-types-for-destructured-objects/64118da1aa97a21655e32bb4"
---

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

Discussion

# [Typescript : Defining types for destructured objects](https://bikashbasnett.com/typescript-defining-types-for-destructured-objects?utm_source=hashnode&utm_medium=feed)

Defining types when destructuring objects in typescript seems a bit confusing for beginners. So in this short article, I'll attempt to explain this concept in an easy and understandable way. Let's say we have an object const user = { firstname: 'John...

Mar 15, 2023 · 2 min read · bikashbasnett.com  
Read the article

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

## Written by

[Bikash Basnett](https://hashnode.com/@bikashbasnett)

@bikashbasnett · Sikkim, India

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
