# Function Node - Monaco editor's intellisense for other libraries

**URL:** <https://discourse.nodered.org/t/function-node-monaco-editors-intellisense-for-other-libraries/79629>\
**Category:** General\
**Created:** [7 July 2023 11:33 UTC](https://discourse.nodered.org/t/function-node-monaco-editors-intellisense-for-other-libraries/79629 "2023-07-07T11:33:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreea-anastasescu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andreea-anastasescu/32/80530_2.png) [@andreea-anastasescu](https://discourse.nodered.org/u/andreea-anastasescu)\
**Post date:** [7 July 2023 11:33 UTC](https://discourse.nodered.org/t/function-node-monaco-editors-intellisense-for-other-libraries/79629/1 "2023-07-07T11:33:37Z")

</div>

Hi,

I am trying to use the 'function' node and i would like to obtain intellisense for more javascript libraries (like lodash or some of our own libraries).  
I was looking in the source code and it seems that there is a fixed list of used types. We could extend that list (modifying red.js) - the knownModules  
I want to double-check if there would be any other solution (some extensibility point I missed).

Thank you!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 July 2023 12:32 UTC](https://discourse.nodered.org/t/function-node-monaco-editors-intellisense-for-other-libraries/79629/2 "2023-07-07T12:32:03Z")

</div>

This is something I would love to get around to but at this point in time, it is not.

However, that said, (iirc) you can add d.ts files into the public directory (where existing types are stored) and any node modules added to the function node imports will load them automatically. I forget what the name of the file should be but my guess is (for example) if you import lodash then lodash.d.ts should be placed in the types directory.

---

<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:** [5 September 2023 12:32 UTC](https://discourse.nodered.org/t/function-node-monaco-editors-intellisense-for-other-libraries/79629/3 "2023-09-05T12:32:42Z")

</div>

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