Skip to content

Commit 96cc335

Browse files
committed
feat: improve typings for xread
1 parent 487c3a0 commit 96cc335

File tree

2 files changed

+12468
-1719
lines changed

2 files changed

+12468
-1719
lines changed

Diff for: bin/generateRedisCommander/returnTypes.js

+1-6
Original file line numberDiff line numberDiff line change
@@ -331,12 +331,7 @@ module.exports = {
331331
xrange: "[id: string, fields: string[]][]",
332332
xrevrange: "[id: string, fields: string[]][]",
333333
xlen: "number",
334-
xread: (types) => {
335-
if (types.find((type) => type.includes("BLOCK"))) {
336-
return "unknown[] | null";
337-
}
338-
return "unknown[]";
339-
},
334+
xread: "[key: string, items: [id: string, fields: string[]][]][] | null",
340335
xreadgroup: "unknown[]",
341336
xack: "number",
342337
xclaim: "unknown[]",

0 commit comments

Comments
 (0)