When using commonjs_strict
option with protoc, ts-protoc-gen does not generate d.ts files correctly
#237
Labels
commonjs_strict
option with protoc, ts-protoc-gen does not generate d.ts files correctly
#237
Versions of relevant software used
What happened
When using protoc to generate javascript files with the
commonjs_strict
flag, the exports are slightly different than when you usecommonjs
.What you expected to happen
ts-protoc-gen needs an option to support this strict mode.
How to reproduce it (as minimally and precisely as possible):
use this script to generate js and ts from some proto files:
Anything else we need to know
When using
commonjs_strict
, the JS exports the entireproto
object from the file. When usingcommonjs
the JS exportsproto.ProtobufMyProtoName
.The text was updated successfully, but these errors were encountered: