harbs wrote > The compiler knows how to read Google Complier extern files. Most of the > typedefs are created from those. > > There’s actually a two-step process for generating the typedefs. It first > creates ActionScript stubs, and then generates the swc from that. It > download the extern files as part of the build process. > > If you are starting from scratch, it’s definitely possible to generate the > swcs from ActionScript stubs, but since most of the typedefs we need have > Google extern files, that’s not necessary. > > HTH, > Harbs
Ok, I got it! Thanks, Harbs! But I still wonder why the Angular guys don't follow this path? Instead of extending their own externs lib they introduced the DefinitelyTyped lib? It seems to me that the closure lib just contains a handful externs while DefinitelyTyped covers nearly anything. But isn't it a very tough work to create all the DefinitelyTyped stuff manually even if it's done by thousands of contributors? I understand that if the origin JS code uses the "externs JSDoc annotations" then you get the typedefs for free? Thanks, Olaf -- View this message in context: http://apache-flex-development.2333347.n4.nabble.com/FlexJS-How-typedefs-working-was-Accessing-the-DOM-tp60735p60738.html Sent from the Apache Flex Development mailing list archive at Nabble.com.