We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df37ea1 commit ca176acCopy full SHA for ca176ac
packages/microservices/enums/rpc-paramtype.enum.ts
@@ -1,5 +1,7 @@
1
+import {RouteParamtypes} from "@nestjs/common/enums/route-paramtypes.enum";
2
+
3
export enum RpcParamtype {
- PAYLOAD = 3,
- CONTEXT = 6,
4
- GRPC_CALL = 9,
+ PAYLOAD = RouteParamtypes.BODY,
5
+ CONTEXT = RouteParamtypes.HEADERS,
6
+ GRPC_CALL = RouteParamtypes.FILES,
7
}
packages/websockets/enums/ws-paramtype.enum.ts
@@ -1,4 +1,6 @@
export enum WsParamtype {
- SOCKET = 0,
+ SOCKET = RouteParamtypes.REQUEST,
0 commit comments