# Typescript support

**URL:** <https://discourse.nodered.org/t/typescript-support/82483>\
**Category:** General\
**Created:** [31 October 2023 07:56 UTC](https://discourse.nodered.org/t/typescript-support/82483 "2023-10-31T07:56:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![therustyalex](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@therustyalex](https://discourse.nodered.org/u/therustyalex)\
**Post date:** [31 October 2023 07:56 UTC](https://discourse.nodered.org/t/typescript-support/82483/1 "2023-10-31T07:56:11Z")

</div>

Are there any plans to support Typescript in node-red in the future?

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [31 October 2023 07:58 UTC](https://discourse.nodered.org/t/typescript-support/82483/2 "2023-10-31T07:58:29Z")

</div>

Hi @therustyalex - welcome to the forums.

Could you clarify what you mean?  
Custom Nodes can already be developed in typescript (I do myself)

---

<div class="post-metadata">

**Author:** ![therustyalex](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@therustyalex](https://discourse.nodered.org/u/therustyalex)\
**Post date:** [2 November 2023 17:01 UTC](https://discourse.nodered.org/t/typescript-support/82483/3 "2023-11-02T17:01:26Z")

</div>

Thank you.

I was mainly thinking about typescript in function nodes:)

The custom nodes in Typescript is also interesting tho, is this what you are referring to:

> **[Node-RED: Creating a custom node using TypeScript](https://medium.com/@bernardo.belchior1/node-red-creating-a-custom-node-using-typescript-5f4fd0127d44)**
>
> Welcome! In this brief article, I will outline how to create a custom Node-RED node using TypeScript.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [2 November 2023 17:10 UTC](https://discourse.nodered.org/t/typescript-support/82483/4 "2023-11-02T17:10:35Z")

</div>

Yes, custom Node development is fully operational in Typescript (I use it for my own nodes)

As for using it in Function nodes - I'm not sure that will be possible.  
As the Code in function nodes uses the Node JS vm environment.

[https://nodejs.org/api/vm.html#vm-executing-javascript](https://nodejs.org/api/vm.html#vm-executing-javascript)

And given typescript is not javascript (more translated to JS, before the V8 engine) - im not sure that it's possible without a mammoth task of re-writing the function node - essentially compiling it with typescript, before its passed to the VM

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [1 January 2024 17:11 UTC](https://discourse.nodered.org/t/typescript-support/82483/5 "2024-01-01T17:11:02Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
