File tree Expand file tree Collapse file tree 7 files changed +32
-32
lines changed Expand file tree Collapse file tree 7 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -837,11 +837,11 @@ export default class RedisClient<
837
837
this . _self . #queue. addCommand ( [ 'MULTI' ] , { chainId } ) ,
838
838
] ;
839
839
840
- for ( const { args} of commands ) {
840
+ for ( const { args } of commands ) {
841
841
promises . push (
842
842
this . _self . #queue. addCommand ( args , {
843
- chainId : chainId ,
844
- typeMapping : typeMapping
843
+ chainId,
844
+ typeMapping
845
845
} )
846
846
) ;
847
847
}
Original file line number Diff line number Diff line change @@ -147,14 +147,14 @@ export default {
147
147
2 : ( rawReply : AggregateRawReply ) : AggregateReply => {
148
148
const results : Array < Record < string , BlobStringReply > > = [ ] ;
149
149
for ( let i = 1 ; i < rawReply . length ; i ++ ) {
150
- results . push (
151
- transformTuplesReply ( rawReply [ i ] as ArrayReply < BlobStringReply > )
152
- ) ;
150
+ results . push (
151
+ transformTuplesReply ( rawReply [ i ] as ArrayReply < BlobStringReply > )
152
+ ) ;
153
153
}
154
154
155
155
return {
156
- total : Number ( rawReply [ 0 ] ) ,
157
- results
156
+ total : Number ( rawReply [ 0 ] ) ,
157
+ results
158
158
} ;
159
159
} ,
160
160
3 : undefined as unknown as ( ) => ReplyUnion
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ export default {
36
36
transformReply : {
37
37
2 : ( reply : AggregateWithCursorRawReply ) : AggregateWithCursorReply => {
38
38
return {
39
- ...AGGREGATE . transformReply [ 2 ] ( reply [ 0 ] ) ,
40
- cursor : reply [ 1 ]
39
+ ...AGGREGATE . transformReply [ 2 ] ( reply [ 0 ] ) ,
40
+ cursor : reply [ 1 ]
41
41
} ;
42
42
} ,
43
43
3 : undefined as unknown as ( ) => ReplyUnion
Original file line number Diff line number Diff line change @@ -21,5 +21,5 @@ export default {
21
21
22
22
return args ;
23
23
} ,
24
- transformReply : undefined as unknown as ( ) => NumberReply ,
24
+ transformReply : undefined as unknown as ( ) => NumberReply
25
25
} as const satisfies Command ;
Original file line number Diff line number Diff line change @@ -32,13 +32,13 @@ export type MGetRawReply3 = Array<[
32
32
] > ;
33
33
34
34
export interface MGetReply2 {
35
- key : string ,
36
- sample : SampleReply2
35
+ key : string ;
36
+ sample : SampleReply2 ;
37
37
}
38
38
39
39
export interface MGetReply3 {
40
- key : string ,
41
- sample : SampleReply3
40
+ key : string ;
41
+ sample : SampleReply3 ;
42
42
}
43
43
44
44
export default {
@@ -49,17 +49,17 @@ export default {
49
49
return pushFilterArgument ( args , filter ) ;
50
50
} ,
51
51
transformReply : {
52
- 2 : ( reply : MGetRawReply2 ) : Array < MGetReply2 > = > {
52
+ 2 ( reply : MGetRawReply2 ) : Array < MGetReply2 > {
53
53
return reply . map ( ( [ key , _ , sample ] ) => ( {
54
- key,
55
- sample : transformSampleReply [ 2 ] ( sample )
54
+ key,
55
+ sample : transformSampleReply [ 2 ] ( sample )
56
56
} ) ) ;
57
57
} ,
58
- 3 : ( reply : MGetRawReply3 ) : Array < MGetReply3 > = > {
58
+ 3 ( reply : MGetRawReply3 ) : Array < MGetReply3 > {
59
59
return reply . map ( ( [ key , _ , sample ] ) => ( {
60
- key,
61
- sample : transformSampleReply [ 3 ] ( sample )
60
+ key,
61
+ sample : transformSampleReply [ 3 ] ( sample )
62
62
} ) ) ;
63
- } ,
63
+ }
64
64
}
65
65
} as const satisfies Command ;
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ export default {
78
78
const args = [ ] ;
79
79
80
80
for ( const [ key , _ , sample ] of reply ) {
81
- args . push ( {
82
- key,
83
- samples : sample . map ( transformSampleReply [ 2 ] )
84
- } ) ;
81
+ args . push ( {
82
+ key,
83
+ samples : sample . map ( transformSampleReply [ 2 ] )
84
+ } ) ;
85
85
}
86
86
87
87
return args ;
Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ export default {
31
31
IS_READ_ONLY : true ,
32
32
transformArguments : transformMRangeWithLabelsArguments . bind ( undefined , 'TS.MRANGE' ) ,
33
33
transformReply : {
34
- 2 : ( reply : MRangeRawReply2 ) : Array < MRangeWithLabelsReplyItem2 > = > {
34
+ 2 ( reply : MRangeRawReply2 ) : Array < MRangeWithLabelsReplyItem2 > {
35
35
const args = [ ] ;
36
36
37
37
for ( const [ key , labels , samples ] of reply ) {
38
- args . push ( {
39
- key,
40
- labels : transformLablesReply ( labels ) ,
41
- samples : samples . map ( transformSampleReply [ 2 ] )
42
- } ) ;
38
+ args . push ( {
39
+ key,
40
+ labels : transformLablesReply ( labels ) ,
41
+ samples : samples . map ( transformSampleReply [ 2 ] )
42
+ } ) ;
43
43
}
44
44
45
45
return args ;
You can’t perform that action at this time.
0 commit comments