-
Notifications
You must be signed in to change notification settings - Fork 343
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
struct unwrap fails TypeScript's noImplicitReturns
check
#432
Comments
@boukeversteegh hm, wdyt about this issue? Should |
@stephenh I think I also see that As I'm on holiday now, I don't have a good setup to work on ts-proto, but I'll try a PR from the github editor to fix these two issues. |
* fix noImplicitReturns error in Value.unwrap Fixes #432 * Force shell script LF line-endings * Update generated struct.ts files * Ensure parameters.txt are checked out with LF line endings * Ensure protoc-gen-dump is checked out with LF line endings
🎉 This issue has been resolved in version 1.92.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Since 1.88.0 was released, the code to unwrap a struct has failed TypeScript's
noImplicitReturns
check, which is normally a sane check to have on.In 1.88.0, the function
unwrapAnyValue
was added, without an explicit return (even though you may know one of the conditionals is guaranteed to be true), resulting in:This is still the case, though in a slightly different form in the latest 1.91, still resulting in the lint error:
The text was updated successfully, but these errors were encountered: