mirror of https://github.com/grpc/grpc-node.git
Tighten the definition of ServiceDefinition
This commit is contained in:
parent
a0abff8b8e
commit
0d19268ef9
|
|
@ -237,8 +237,8 @@ declare module "grpc" {
|
|||
* An object that completely defines a service.
|
||||
* @typedef {Object.<string, grpc~MethodDefinition>} grpc~ServiceDefinition
|
||||
*/
|
||||
export interface ServiceDefinition<ImplementationType> {
|
||||
[s: string]: MethodDefinition<any, any>;
|
||||
export type ServiceDefinition<ImplementationType> = {
|
||||
readonly [I in keyof ImplementationType]: MethodDefinition<any, any>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue