I am trying to hack my way around getting all of my clientside callback code and other clientside javascript into TypeScript. And then hooking up the TypeScript compiler to watch my source folder and the build and output javascript to the assets folder.
Has anyone tried this? Am I going down a dark endless road?
Trying to get it to compile with SystemJS and then add this to my app
I was kinda getting there with SystemJS, but getting stuck quite close to the end. Wasnt sure if the dash renderer was being affected or not.
The application we are developing has quite a lot of front end code besides callbacks. And even with just the callbacks it would be a lot easier to be able to specify the interface types that the callback receives.
I started creating a typescript type file for the dash_clientside object on the window just to help with autocomplete.
And having the ability to have Plotly autocomplete is also just magic.
So unless you say its a renderer issue…I’m gonna try to my best to get a working hack for this
I was thinking of the component typescript compiler that wouldn’t work with systemjs as target, a regular js file should be fine in the assets.
The typescript compiler alone may not be enough, you could use webpack and ts-loader to export the module to the window then you can use it in clientside callbacks.