-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pbts doesn't generate enum typings when the enum is defined after its use #1342
Comments
|
It seems the issue occurs depending on the versions of installed dependencies of the CLI:
|
tq-schifferm
added a commit
to tq-schifferm/protobuf.js
that referenced
this issue
Jan 20, 2020
pbts currently doesn't work with jsdoc 3.6.x and will emit broken definitions when trying to use it. As the toplevel package-lock.json is not respected by `npm install` as executed by the CLI utils, fix the jsdoc version to 3.5.5 in package.json. Fixes protobufjs#1342
Closed
Running into same issues |
Moreover, it seems that messages defined after an enum declaration do not have appropriate interfaces. It's utterly broken and is preventing successful builds |
protobuf version 6.9.1 resolved this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
protobuf.js version: 6.8.8
Take the following .proto file:
With the following commands:
The generated .d.ts file will be unusable, as it references the type
Status
, buts its definition is missing. Using commonjs instead of es6 yields the same results.Reversing the order of the definitions leads to a different result: while a Status definition is emitted, now ITest is missing instead.
The text was updated successfully, but these errors were encountered: