Skip to content

Commit

Permalink
feat: improve typings for xread
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Mar 16, 2022
1 parent 487c3a0 commit 96cc335
Show file tree
Hide file tree
Showing 2 changed files with 12,468 additions and 1,719 deletions.
7 changes: 1 addition & 6 deletions bin/generateRedisCommander/returnTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,12 +331,7 @@ module.exports = {
xrange: "[id: string, fields: string[]][]",
xrevrange: "[id: string, fields: string[]][]",
xlen: "number",
xread: (types) => {
if (types.find((type) => type.includes("BLOCK"))) {
return "unknown[] | null";
}
return "unknown[]";
},
xread: "[key: string, items: [id: string, fields: string[]][]][] | null",
xreadgroup: "unknown[]",
xack: "number",
xclaim: "unknown[]",
Expand Down
Loading

0 comments on commit 96cc335

Please sign in to comment.