-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEAT] ImportLibrary() and Proper Typescript Support #15
base: master
Are you sure you want to change the base?
Conversation
Runs the Editor code through the typescript transpiler before execution. This is in preparation for typescript library importation. Soon you will be able to use whatever typescript syntax you like! No longer will you be constrained by the tyrrany of the standard library!
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/zalo/cascade-studio/6SMWdmNkaJTwSrqsWYEf86KaU2gZ |
Instead of eg: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import |
@Irev-Dev I'm primarily worried the Typescript PR just makes everything slower; the way I have it architected now has all of the library imports strung out as a series of dependent requests. To get it merged, I'll probably want to add some kind of prefetching, caching, and loading mechanism... (Also some rough edges around clicking to the source in the intellisense documentation and caching preventing changes from propagating...) |
This PR properly transpiles the editor code from typescript back to javascript, allowing for inline type specification and increased usability/robustness.
This PR also adds support for importing libraries from external URLs with IntelliSense, so users can use alternative "Standard Libraries" that meet their needs without having to fork the editor entirely.
Here is an example of a library being imported with IntelliSense.