Closed boltex closed 8 months ago
If the detected language of a script initiated by Ctrl+B is 'typescipt', consider the code to be a typescript source instead of javascript and run it through TSC compiler before giving it to the regular leojs script runner.
see https://stackoverflow.com/questions/23075748/how-to-compile-typescript-code-in-the-browser see https://github.com/microsoft/TypeScript/issues/50758
See this for a working example https://jsfiddle.net/mp4ev9t5/1/
If the detected language of a script initiated by Ctrl+B is 'typescipt', consider the code to be a typescript source instead of javascript and run it through TSC compiler before giving it to the regular leojs script runner.
see https://stackoverflow.com/questions/23075748/how-to-compile-typescript-code-in-the-browser see https://github.com/microsoft/TypeScript/issues/50758