Umm... I guess I was not thinking clearly. (exhaustion can do that…) ;-) I was thinking that the casting happens when compiling the app, but that’s not true as the js from the library is pre-compiled.
However, I don’t think I can globally disable “as” in TLF, and I don’t think we can do that in the FlexJS SDK libs either. > On Mar 9, 2017, at 8:30 PM, Alex Harui <aha...@adobe.com> wrote: > > > > On 3/9/17, 10:22 AM, "Harbs" <harbs.li...@gmail.com> wrote: > >>> You can turn off all "as" output in the cross-compile via >>> -skipAsCoercions >> >> Only if you are compiling your own app — and you never rely on “as” >> casting. >> >> That doesn’t help if you are writing a library. > > I guess I don't understand. IMO, either your code needs coercion at > runtime or it doesn't. Why is a Library different from an App in this > case? > > Thanks, > -Alex >