Skip to content

Commit

Permalink
Merge pull request #1860 from murgatroid99/grpc-native_ServiceDefinit…
Browse files Browse the repository at this point in the history
…ion_fix

grpc: Make ServiceDefinition type argument optional
  • Loading branch information
murgatroid99 committed Jul 22, 2021
2 parents 465f7a1 + 913734d commit bb51830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/grpc-native-core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ declare module "grpc" {
/**
* An object that completely defines a service.
*/
export type ServiceDefinition<ImplementationType> = {
export type ServiceDefinition<ImplementationType = UntypedServiceImplementation> = {
readonly [I in keyof ImplementationType]: MethodDefinition<any, any>;
}

Expand Down

0 comments on commit bb51830

Please sign in to comment.