Monaco Editor "System-wide" code-completition (enums)

Creating the interface describe in this thread works fine:

Related to this thread : Monaco Editor "System-wide" code-completition

What would be the best approach to define global wide const or enums. I think the definition in the func.d.ts is used by the monaco-editor (only) and this works fine with enums, but at runtime node-red doesn't "know" them. (For me it's clear, the func.d.ts is for the monace-editor only).

One solution could be to define them twice (but code duplication is a bad "smell"), but is there a solution to define them in one place? To use by monaco and nodered?

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