---
title: "Discussion on \"Passing metadata from TypeScript code to JavaScript code using decorators for Dependency Injection\" | Hashnode"
description: "Discussion on \"Passing metadata from TypeScript code to JavaScript code using decorators for Dependency Injection\". When TypeScript decorators are used for Dependency Injection, they are needed for two things. First, they signal to the TypeScript compiler that it needs to read TypeScript types, transform them into JavaScript code, and save them. Second, if additio..."
url: "https://hashnode.com/posts/passing-metadata-from-typescript-code-to-javascript-code-using-decorators-for-dependency-injection/66869e4cb31374314f7ccc30"
---

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

Discussion

# [Passing metadata from TypeScript code to JavaScript code using decorators for Dependency Injection](https://ktretiak.hashnode.dev/passing-metadata-from-typescript-code-to-javascript-code-using-decorators-for-dependency-injection?utm_source=hashnode&utm_medium=feed)

When TypeScript decorators are used for Dependency Injection, they are needed for two things. First, they signal to the TypeScript compiler that it needs to read TypeScript types, transform them into JavaScript code, and save them. Second, if additio...

Jul 4, 2024 · 3 min read · ktretiak.hashnode.dev  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#angularjs](https://hashnode.com/tag/angularjs)
-   [#nestjs](https://hashnode.com/tag/nestjs)
-   [#ditsmod](https://hashnode.com/tag/ditsmod)

## Written by

[Костя Третяк](https://hashnode.com/@ktretiak)

@ktretiak

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

typescript, ditsmod, sql, nodejs, nestjs, ditsmod

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
