You've already forked node-redis
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user