You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by QA <fl...@gmail.com> on 2019/05/31 19:16:02 UTC
Is it possible to get code intelligence for included JS classes
I remember reading about this a while ago but I've created a JS class
and am including it a Royale project and a pure AS3 project. Is it
possible to get code intelligence for it?
Jude
Re: Is it possible to get code intelligence for included JS classes
Posted by Alex Harui <ah...@adobe.com.INVALID>.
Not quite sure what you mean.
The recommended practice for "creating a JS class" is to write it in ActionScript and have it transpiled to JS. Then the AS is handled by code intelligence in most IDEs.
If you are only "representing a JS class", in other words, using a JS class that is loaded into the browser or JS runtime by some other means, then the recommended practice is to use typedefs/externs and build out a SWC from that, and I think those SWCs will show up in IDE code intelligence. You can see examples in the royale-typedefs repo and verify that those SWCs show up in code intelligence.
HTH,
-Alex
On 5/31/19, 12:16 PM, "QA" <fl...@gmail.com> wrote:
I remember reading about this a while ago but I've created a JS class
and am including it a Royale project and a pure AS3 project. Is it
possible to get code intelligence for it?
Jude