Tighten the definition of ServiceDefinition

This commit is contained in:
André Wachter 2018-01-10 11:08:34 +01:00
parent a0abff8b8e
commit 0d19268ef9
1 changed files with 2 additions and 2 deletions

View File

@ -237,8 +237,8 @@ declare module "grpc" {
* An object that completely defines a service. * An object that completely defines a service.
* @typedef {Object.<string, grpc~MethodDefinition>} grpc~ServiceDefinition * @typedef {Object.<string, grpc~MethodDefinition>} grpc~ServiceDefinition
*/ */
export interface ServiceDefinition<ImplementationType> { export type ServiceDefinition<ImplementationType> = {
[s: string]: MethodDefinition<any, any>; readonly [I in keyof ImplementationType]: MethodDefinition<any, any>;
} }
/** /**