Are you compiling the PDF typdefs as a separate lib? If so, you need to make sure the application compiler treats it as a js-external-library. If you do that, as Josh pointed out, no js output from the lib will be included in your application so it shouldn't matter what actual values you return, as long as it compiles.
On 2021/10/23 22:35:33, Hugo Ferreira <[email protected]> wrote: > Hi, > > How to use a method in externs ( > https://apache.github.io/royale-docs/features/externs) that returns a value. > > I tried: public static function getDocumentAsPDF():Object { return null; } > > But of course that returns null (even the JS version returns a value) >
