You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix history type
This commit is contained in:
@@ -12,7 +12,7 @@ type CommandDocumentation = {
|
|||||||
since: string;
|
since: string;
|
||||||
group: string;
|
group: string;
|
||||||
complexity: string;
|
complexity: string;
|
||||||
history?: Array<string>;
|
history?: Array<[versio: string, feature: string]>;
|
||||||
};
|
};
|
||||||
|
|
||||||
type CommandDocsReply = Array<[CommandName: string, CommandDocumentation: CommandDocumentation]>;
|
type CommandDocsReply = Array<[CommandName: string, CommandDocumentation: CommandDocumentation]>;
|
||||||
@@ -29,7 +29,7 @@ export function transformReply(rawReply: Array<any>): CommandDocsReply {
|
|||||||
since: rawReply[i][3],
|
since: rawReply[i][3],
|
||||||
group: rawReply[i][5],
|
group: rawReply[i][5],
|
||||||
complexity: rawReply[i][7],
|
complexity: rawReply[i][7],
|
||||||
history: rawReply[i][8] == 'history' ? rawReply[i][9] : null
|
history: rawReply[i][8] == 'history' ? rawReply[i][9] : null
|
||||||
}
|
}
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user