---
title: "Discussion on \"Adding Custom property to Request Object globally using TypeScript\" | Hashnode"
description: "Discussion on \"Adding Custom property to Request Object globally using TypeScript\". TypeScript will not recognise any custom property when we are trying to access it without declaring, to prevent TS from throwing an error when we want to access any custom property say req.user we need to declare it globally by using module augmentat..."
url: "https://hashnode.com/posts/adding-custom-property-to-request-object-globally-using-typescript/6857051e73fb35fc1b0e9814"
---

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

Discussion

# [Adding Custom property to Request Object globally using TypeScript](https://siddhantsiddh15.hashnode.dev/adding-custom-property-to-request-object-globally-using-typescript?utm_source=hashnode&utm_medium=feed)

TypeScript will not recognise any custom property when we are trying to access it without declaring, to prevent TS from throwing an error when we want to access any custom property say req.user we need to declare it globally by using module augmentat...

Jun 21, 2025 · 1 min read · siddhantsiddh15.hashnode.dev  
Read the article

## Written by

[Siddhant](https://hashnode.com/@siddhantsiddh15)

@siddhantsiddh15 · India

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

Learning everyday to be a better programmer

I am a developer from India. I like exploring new technologies to understand how engineering works. I have interest in React, Redux, NodeJS, JavaScript and I share my learnings one blog at a time which can be useful for any normal reader.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
