RadarTech / lnrpc

A Typescript gRPC client for LND with support for all LND sub-servers
MIT License
43 stars 13 forks source link

Optional flag to include default values #69

Closed cavanmflynn closed 4 years ago

cavanmflynn commented 4 years ago

This PR allows the consumer of this library to optionally enable the inclusion of default values in gRPC responses, resolving https://github.com/RadarTech/lnrpc/issues/64.

By default, these values are stripped from responses. Unfortunately, this has the side effect of removing falsy values that the consumer may want in the response, like an enum member with a value of 0. This change allows the consumer to optionally enable the inclusion of these values.