Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 6754e63

Browse files
authored
Fix range+revrange return types in Timeseries (#202)
1 parent 9879605 commit 6754e63

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/rts/rts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export class RedisTimeSeries extends Module {
155155
* @param options.aggregation.type The type of the 'AGGREGATION' command
156156
* @param options.aggregation.timeBucket The time bucket of the 'AGGREGATION' command
157157
*/
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][]> {
159159
const command = this.rtsCommander.range(key, fromTimestamp, toTimestamp, options);
160160
return await this.sendCommand(command);
161161
}
@@ -171,7 +171,7 @@ export class RedisTimeSeries extends Module {
171171
* @param options.aggregation.type The type of the 'AGGREGATION' command
172172
* @param options.aggregation.timeBucket The time bucket of the 'AGGREGATION' command
173173
*/
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][]> {
175175
const command = this.rtsCommander.revrange(key, fromTimestamp, toTimestamp, options);
176176
return await this.sendCommand(command);
177177
}
@@ -263,4 +263,4 @@ export class RedisTimeSeries extends Module {
263263
const command = this.rtsCommander.del(key, fromTimestamp, toTimestamp);
264264
return await this.sendCommand(command);
265265
}
266-
}
266+
}

0 commit comments

Comments
 (0)