1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

some more commands

This commit is contained in:
Leibale
2023-05-14 14:42:48 +03:00
parent 442a554fce
commit 37be30a8fe
32 changed files with 547 additions and 614 deletions

View File

@@ -2,7 +2,7 @@ import { ArrayReply, BlobStringReply, NumberReply, Command, Resp2Reply, TuplesTo
export type ModuleListReply = ArrayReply<TuplesToMapReply<[
[BlobStringReply<'name'>, BlobStringReply],
[BlobStringReply<'version'>, NumberReply],
[BlobStringReply<'ver'>, NumberReply],
]>>;
export default {
@@ -15,7 +15,7 @@ export default {
2: (reply: Resp2Reply<ModuleListReply>) => {
return reply.map(module => ({
name: module[1],
version: module[3]
ver: module[3]
}));
},
3: undefined as unknown as () => ModuleListReply