Closed shawncao closed 11 months ago
This is awesome, thank you so much! The fix is simply to flip it to "strictNullChecks": true,
in tsconfig
As a temp fix yesterday, I changed the oneof field to two optional fields, can't tell if it has much disadvantage, still scratching my head as to why I used oneof in the first place, haha~
Hi,
This project looks promising, so try it out to migrate existing PROTOC common to this plugin.
I just hit a compile error as stated below:
Part of proto def:
The generated code looks like this
And compiling error looks like this:
I understand, the generated code may be legit, just Typescript needs option to pass the check, but I'm not sure, as I seem can't find an option for that. Love to check here if anybody knows how to fix this?
Thanks!