Read the statement by Michael Teeuw here.
MMM-RouteInfo
-
Also, just to clarify - I’ve made an attempt to create a TypeScript definitions file for MagicMirror. It’s by no means complete, but I would really appreciate it if anyone would like to help/collaborate on this specific topic.
The definition files are in my GitHub repo in the ‘src’ folder.
Being able to use TypeScript to develop for MagicMirror would be a great improvement if you ask me ;-)
-
Just wanted to let you know that I made initial TS pr for MagicMirror to add simple types. They aren’t complete but you gotta start somewhere :) https://github.com/MichMich/MagicMirror/pull/1121
-
@henrikra I am not sure if it is appropriate but I would like to use Nullish coalescing operator.
Is it supported in native MagicMirror? Thanks
-
@winstonma as I replied in your other topic it needs node version 14 or higher and maybe a browser mod
u can you chromium over the mm server to test, if u have node 14
note it also depends where the operator is used
if in node_helper, then u need node 14 on the server. if I the modulename.js then wherever the browser runs
-
Thanks @sdetweil
As there are some TS support added 2 years ago (and I am not sure how much TS support is added), therefore I have this question.
Yes the browser support on Nullish coalescing operator started half year back but I need the operator on the backend code (which is the node part). I wonder if I could add some npm modules to make it happen.
-
@winstonma no idea. looks like a language thing
-
@sdetweil I read this article it gives me some hope that I could add some TS support in the existing module.
Thanks