You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
convert "resp types" to interfaces to allow circular references
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RedisArgument, TuplesToMapReply, BlobStringReply, ArrayReply, NumberReply, Resp2Reply, Command, TuplesReply } from '../RESP/types';
|
||||
import { RedisArgument, TuplesToMapReply, BlobStringReply, ArrayReply, TuplesReply, NumberReply, UnwrapReply, Resp2Reply, Command } from '../RESP/types';
|
||||
import LCS_IDX, { LcsIdxOptions, LcsIdxRange } from './LCS_IDX';
|
||||
|
||||
export type LcsIdxWithMatchLenMatches = ArrayReply<
|
||||
@@ -27,7 +27,7 @@ export default {
|
||||
return args;
|
||||
},
|
||||
transformReply: {
|
||||
2: (reply: Resp2Reply<LcsIdxWithMatchLenReply>) => ({
|
||||
2: (reply: UnwrapReply<Resp2Reply<LcsIdxWithMatchLenReply>>) => ({
|
||||
matches: reply[1],
|
||||
len: reply[3]
|
||||
}),
|
||||
|
Reference in New Issue
Block a user