mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
cb42863868
This reverts commit 80e5161a20
.
22 lines
544 B
TypeScript
22 lines
544 B
TypeScript
import { ValueOf } from 'type-fest';
|
|
|
|
export const GrpcRequestEventEnum = {
|
|
start: 'GRPC_START',
|
|
sendMessage: 'GRPC_SEND_MESSAGE',
|
|
commit: 'GRPC_COMMIT',
|
|
cancel: 'GRPC_CANCEL',
|
|
cancelMultiple: 'GRPC_CANCEL_MULTIPLE',
|
|
} as const;
|
|
|
|
export type GrpcRequestEvent = ValueOf<typeof GrpcRequestEventEnum>;
|
|
|
|
export const GrpcResponseEventEnum = {
|
|
start: 'GRPC_START',
|
|
data: 'GRPC_DATA',
|
|
error: 'GRPC_ERROR',
|
|
end: 'GRPC_END',
|
|
status: 'GRPC_STATUS',
|
|
} as const;
|
|
|
|
export type GrpcResponseEvent = ValueOf<typeof GrpcResponseEventEnum>;
|