elsassph / hxtsdgen

TypeScript declaration file generator for Haxe JavaScript output target
65 stars 12 forks source link

Add option to flatten packages #26

Open elsassph opened 5 years ago

elsassph commented 5 years ago

Using packages in JS isn't idiomatic and leads to relatively awkward situations.

An option could attempt at exposing types without packages - this brings potential conflicts if several classes have the same name in different modules. Possibly we would raise an error and an explict @:expose('OtherName') would have to be added to avoid the conflict.