protobuf.js
protobuf.js copied to clipboard
pbjs/pbts-generated namespaces
protobuf.js version: 6.8.0
Is there any way to not generate nested namespaces based on the proto package name, and have the types at the top-level?
If not, can a cli and/or file-level proto option be added?
I also need this :)
Any progress on this ? I also would like this feature.
+1
To reiterate why you shouldn’t try to namespace your module contents, the general idea of namespacing is to provide logical grouping of constructs and to prevent name collisions. Because the module file itself is already a logical grouping, and its top-level name is defined by the code that imports it, it’s unnecessary to use an additional module layer for exported objects.
Maybe we need file to file 1:1 transform?