Skip to content

Commit

Permalink
fixes the status codes ordering (#1279)
Browse files Browse the repository at this point in the history
in the grpc-web package the status codes are in the wrong order causing them to be interpreted differently, so when comparing status codes that we get from a service it is not the same, this commit fixes that
  • Loading branch information
chandraaditya authored Sep 19, 2022
1 parent b3d7dbd commit 903601a
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/grpc-web/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,23 +128,23 @@ declare module "grpc-web" {
}

export enum StatusCode {
ABORTED,
ALREADY_EXISTS,
OK,
CANCELLED,
DATA_LOSS,
DEADLINE_EXCEEDED,
FAILED_PRECONDITION,
INTERNAL,
UNKNOWN,
INVALID_ARGUMENT,
DEADLINE_EXCEEDED,
NOT_FOUND,
OK,
OUT_OF_RANGE,
ALREADY_EXISTS,
PERMISSION_DENIED,
RESOURCE_EXHAUSTED,
UNAUTHENTICATED,
UNAVAILABLE,
FAILED_PRECONDITION,
ABORTED,
OUT_OF_RANGE,
UNIMPLEMENTED,
UNKNOWN,
INTERNAL,
UNAVAILABLE,
DATA_LOSS,
UNAUTHENTICATED,
}

export namespace MethodType {
Expand Down

0 comments on commit 903601a

Please sign in to comment.