Generate GDJS types #2802
arthuro555
started this conversation in
Enhancement ideas (and their technical discussions)
Replies: 1 comment 1 reply
-
Yes! That's even a comment in the codebase ;) GDevelop/newIDE/app/src/CodeEditor/LocalCodeEditorAutocompletions.js Lines 40 to 47 in f3a49ad By doing this, we can remove the copy of the sources (which is now done anyway only when starting or bundling the IDE). But we have to change the TS config to export these type definitions (takes a bit more time for tsc) and output them in a place where read by the IDE (and ensure this is done before bundling). |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Instead of bundling both the built and non-built runtime for autocompletion, we could generate type definitions with tsc and bundle those with GDevelop for autocompletions. This should help make GDevelop more lightweight (and I must admit that my primary motivation is that this would also be pretty useful for type checking external tools that use the gdjs api, like my modding tool gdmod and other tool ideas I have)
Beta Was this translation helpful? Give feedback.
All reactions