Skip to content

Commit

Permalink
make method options required
Browse files Browse the repository at this point in the history
  • Loading branch information
n0v1 committed Apr 9, 2024
1 parent e6ac1a4 commit 6c7225f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/proto-loader/src/index.ts
Expand Up @@ -154,7 +154,7 @@ export interface MethodDefinition<RequestType, ResponseType, OutputRequestType=R
originalName?: string;
requestType: MessageTypeDefinition;
responseType: MessageTypeDefinition;
options?: MethodOptions;
options: MethodOptions;
}

export interface ServiceDefinition {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 6c7225f

Please sign in to comment.