Open jimtang9527 opened 3 years ago
the last version grpc_tools_node_protoc_ts will encounter errors like "Index signature is missing in type".
` class SongsServer implements ISongsServer { {
// others ...
} `
a solution that worked for me was to implement they interface with the string key like vscode suggests - [name: string]: grpc.UntypedHandleCall;
above all the other function implementations. There's probably a better more idiomatic typescript way to do this but that should work
There is no best practice for combining grpc and typescript. Until I saw this demo. Thank you @mschristensen .