Skip to content

Commit

Permalink
Fix type for grpcWeb.Error to grpcweb.RpcError (#5072)
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
  • Loading branch information
ffjlabo authored Jul 25, 2024
1 parent 804d963 commit 8a39eca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const apiClient = new WebServiceClient(apiEndpoint, null, {
});

interface ApiCallback<Res> {
(err: grpcWeb.Error, response: { toObject: () => Res }): void;
(err: grpcWeb.RpcError, response: { toObject: () => Res }): void;
}

export async function apiRequest<Req, Res>(
Expand Down

0 comments on commit 8a39eca

Please sign in to comment.