When you create externs, the code is used only for type checking by the compiler, and it doesn't generate JavaScript code. In other words, it won't affect runtime behavior at all. You could return anything, and it won't matter. Null is fine, and I think that's what most people use.
-- Josh Tynjala Bowler Hat LLC <https://bowlerhat.dev> On Sat, Oct 23, 2021 at 3:35 PM 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) >
