You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Small type generation bug (I hope to contribute a fix, but wanted to make sure to open an issue in case I forget!). For grpc-js generated clients, the following constructor is used:
new (
address: string,
credentials: ${ChannelCredentials},
options?: Partial<${ChannelOptions}>,
): ${serviceDesc.name}Client;
However, options here is not correct: it should use the ClientOptions type (exported from grpc-js) instead, which is Partial<ChannelOptions> plus some extra fields that you can pass to a client constructor (see https://grpc.github.io/grpc/node/grpc.Client.html).
Very minor bug in the grand scheme of things and easy to work around since it's just a type bug, but I think an easy fix unless I'm missing something.
The text was updated successfully, but these errors were encountered:
Small type generation bug (I hope to contribute a fix, but wanted to make sure to open an issue in case I forget!). For grpc-js generated clients, the following constructor is used:
However,
options
here is not correct: it should use theClientOptions
type (exported from grpc-js) instead, which isPartial<ChannelOptions>
plus some extra fields that you can pass to a client constructor (see https://grpc.github.io/grpc/node/grpc.Client.html).Very minor bug in the grand scheme of things and easy to work around since it's just a type bug, but I think an easy fix unless I'm missing something.
The text was updated successfully, but these errors were encountered: