Skip to content

Commit 8a83701

Browse files
fixes the status codes ordering
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
1 parent b3d7dbd commit 8a83701

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

packages/grpc-web/index.d.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -128,23 +128,23 @@ declare module "grpc-web" {
128128
}
129129

130130
export enum StatusCode {
131-
ABORTED,
132-
ALREADY_EXISTS,
131+
OK,
133132
CANCELLED,
134-
DATA_LOSS,
135-
DEADLINE_EXCEEDED,
136-
FAILED_PRECONDITION,
137-
INTERNAL,
133+
UNKNOWN,
138134
INVALID_ARGUMENT,
135+
DEADLINE_EXCEEDED,
139136
NOT_FOUND,
140-
OK,
141-
OUT_OF_RANGE,
137+
ALREADY_EXISTS,
142138
PERMISSION_DENIED,
143139
RESOURCE_EXHAUSTED,
144-
UNAUTHENTICATED,
145-
UNAVAILABLE,
140+
FAILED_PRECONDITION,
141+
ABORTED,
142+
OUT_OF_RANGE,
146143
UNIMPLEMENTED,
147-
UNKNOWN,
144+
INTERNAL,
145+
UNAVAILABLE,
146+
DATA_LOSS,
147+
UNAUTHENTICATED,
148148
}
149149

150150
export namespace MethodType {

0 commit comments

Comments
 (0)