creditkarma / thrift-typescript

Generate TypeScript from Thrift IDL files
Apache License 2.0
155 stars 32 forks source link

fix: Add root namespace construct to fix invalid imports of root name… #157

Closed kevin-greene-ck closed 5 years ago

kevin-greene-ck commented 5 years ago

…space into other namespace files

There is an issue when trying to import Thrift files without namespaces. The generated TypeScript is invalid. This PR adds the construct of __ROOT_NAMESPACE__ for files that do not have a declared namespace.