Skip to content

Commit 51b97dc

Browse files
committed
types changed
1 parent f7f00d0 commit 51b97dc

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

src/metadata/types/ActionTypes.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/**
22
* Controller action type.
33
*/
4-
export type ActionType = "message"|"connection"|"disconnection";
4+
export type ActionType = "message"
5+
| "connection"
6+
| "disconnection";
57

68
/**
79
* Static access to action types.

src/metadata/types/ParamTypes.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,25 @@
11
/**
22
* Controller action's parameter type.
33
*/
4-
export type ParamType = "custom"|"connected_socket"|"socket_body"|"socket_query_param"|"socket_io"|"socket_id"
5-
|"socket_request"|"socket_rooms";
4+
export type ParamType = "custom"
5+
| "connected-socket"
6+
| "socket-body"
7+
| "socket-query-param"
8+
| "socket-io"
9+
| "socket-id"
10+
| "socket-request"
11+
| "socket-rooms";
612

713
/**
814
* Controller action's parameter type.
915
*/
1016
export class ParamTypes {
1117
static CUSTOM: ParamType = "custom";
12-
static CONNECTED_SOCKET: ParamType = "connected_socket";
13-
static SOCKET_BODY: ParamType = "socket_body";
14-
static SOCKET_QUERY_PARAM: ParamType = "socket_query_param";
15-
static SOCKET_IO = "socket_io";
16-
static SOCKET_ID = "socket_id";
17-
static SOCKET_REQUEST = "socket_request";
18-
static SOCKET_ROOMS = "socket_rooms";
18+
static CONNECTED_SOCKET: ParamType = "connected-socket";
19+
static SOCKET_BODY: ParamType = "socket-body";
20+
static SOCKET_QUERY_PARAM: ParamType = "socket-query-param";
21+
static SOCKET_IO = "socket-io";
22+
static SOCKET_ID = "socket-id";
23+
static SOCKET_REQUEST = "socket-request";
24+
static SOCKET_ROOMS = "socket-rooms";
1925
}

src/metadata/types/ResultTypes.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
/**
22
* Action result handler type.
33
*/
4-
export type ResultType = "emit_on_success"|"emit_on_fail"|"skip_emit_on_empty_result";
4+
export type ResultType = "emit-on-success"
5+
| "emit-on-fail"
6+
| "skip-emit-on-empty-result";
57

68
/**
79
* Static access to result handler types.
810
*/
911
export class ResultTypes {
10-
static EMIT_ON_SUCCESS: ResultType = "emit_on_success";
11-
static EMIT_ON_FAIL: ResultType = "emit_on_fail";
12-
static SKIP_EMIT_ON_EMPTY_RESULT: ResultType = "skip_emit_on_empty_result";
12+
static EMIT_ON_SUCCESS: ResultType = "emit-on-success";
13+
static EMIT_ON_FAIL: ResultType = "emit-on-fail";
14+
static SKIP_EMIT_ON_EMPTY_RESULT: ResultType = "skip-emit-on-empty-result";
1315
}

0 commit comments

Comments
 (0)