@@ -155,7 +155,7 @@ export class RedisTimeSeries extends Module {
155
155
* @param options.aggregation.type The type of the 'AGGREGATION' command
156
156
* @param options.aggregation.timeBucket The time bucket of the 'AGGREGATION' command
157
157
*/
158
- async range ( key : string , fromTimestamp : string , toTimestamp : string , options ?: TSRangeOptions ) : Promise < number [ ] > {
158
+ async range ( key : string , fromTimestamp : string , toTimestamp : string , options ?: TSRangeOptions ) : Promise < [ number , string ] [ ] > {
159
159
const command = this . rtsCommander . range ( key , fromTimestamp , toTimestamp , options ) ;
160
160
return await this . sendCommand ( command ) ;
161
161
}
@@ -171,7 +171,7 @@ export class RedisTimeSeries extends Module {
171
171
* @param options.aggregation.type The type of the 'AGGREGATION' command
172
172
* @param options.aggregation.timeBucket The time bucket of the 'AGGREGATION' command
173
173
*/
174
- async revrange ( key : string , fromTimestamp : string , toTimestamp : string , options ?: TSRangeOptions ) : Promise < number [ ] > {
174
+ async revrange ( key : string , fromTimestamp : string , toTimestamp : string , options ?: TSRangeOptions ) : Promise < [ number , string ] [ ] > {
175
175
const command = this . rtsCommander . revrange ( key , fromTimestamp , toTimestamp , options ) ;
176
176
return await this . sendCommand ( command ) ;
177
177
}
@@ -263,4 +263,4 @@ export class RedisTimeSeries extends Module {
263
263
const command = this . rtsCommander . del ( key , fromTimestamp , toTimestamp ) ;
264
264
return await this . sendCommand ( command ) ;
265
265
}
266
- }
266
+ }
0 commit comments