Skip to content

Commit 287f5df

Browse files
fix: use proper xid types for xpending range (#436)
1 parent dc6c4b3 commit 287f5df

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

redis.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1922,8 +1922,8 @@ class RedisImpl implements Redis {
19221922
consumer?: string,
19231923
) {
19241924
const args = [];
1925-
args.push(startEndCount.start);
1926-
args.push(startEndCount.end);
1925+
args.push(xidstr(startEndCount.start));
1926+
args.push(xidstr(startEndCount.end));
19271927
args.push(startEndCount.count);
19281928

19291929
if (consumer) {

stream.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export interface XPendingCount {
137137
* args must be specified if _any_ are specified.
138138
*/
139139
export interface StartEndCount {
140-
start: number | "-";
141-
end: number | "+";
140+
start: XIdNeg;
141+
end: XIdPos;
142142
count: number;
143143
}
144144

0 commit comments

Comments
 (0)