Skip to content

Commit

Permalink
Fix type for grpcWeb.Error to grpcweb.RpcError
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshiki Fujikane <ffjlabo@gmail.com>
  • Loading branch information
ffjlabo committed Jul 25, 2024
1 parent b0e40d5 commit 4dbd150
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 4dbd150

Please sign in to comment.