mirror of https://github.com/grpc/grpc-node.git
make method options required
This commit is contained in:
parent
e6ac1a49ed
commit
6c7225f3ba
|
@ -154,7 +154,7 @@ export interface MethodDefinition<RequestType, ResponseType, OutputRequestType=R
|
|||
originalName?: string;
|
||||
requestType: MessageTypeDefinition;
|
||||
responseType: MessageTypeDefinition;
|
||||
options?: MethodOptions;
|
||||
options: MethodOptions;
|
||||
}
|
||||
|
||||
export interface ServiceDefinition {
|
||||
|
@ -265,8 +265,9 @@ function mapMethodOptions(options: Partial<MethodOptions>[] | undefined): Method
|
|||
{
|
||||
deprecated: false,
|
||||
idempotency_level: IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
|
||||
uninterpreted_option: []
|
||||
});
|
||||
uninterpreted_option: [],
|
||||
}
|
||||
) as MethodOptions;
|
||||
}
|
||||
|
||||
function createMethodDefinition(
|
||||
|
|
Loading…
Reference in New Issue