File tree Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Expand file tree Collapse file tree 3 files changed +24
-14
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
2
* Controller action type.
3
3
*/
4
- export type ActionType = "message" | "connection" | "disconnection" ;
4
+ export type ActionType = "message"
5
+ | "connection"
6
+ | "disconnection" ;
5
7
6
8
/**
7
9
* Static access to action types.
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Controller action's parameter type.
3
3
*/
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" ;
6
12
7
13
/**
8
14
* Controller action's parameter type.
9
15
*/
10
16
export class ParamTypes {
11
17
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 " ;
19
25
}
Original file line number Diff line number Diff line change 1
1
/**
2
2
* Action result handler type.
3
3
*/
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" ;
5
7
6
8
/**
7
9
* Static access to result handler types.
8
10
*/
9
11
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 " ;
13
15
}
You can’t perform that action at this time.
0 commit comments