You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
16 lines
328 B
TypeScript
16 lines
328 B
TypeScript
export const FIRST_KEY_INDEX = 1;
|
|
|
|
export function transformArguments(key: string, path?: string): Array<string> {
|
|
const args = ['JSON.RESP', key];
|
|
|
|
if (path) {
|
|
args.push(path);
|
|
}
|
|
|
|
return args;
|
|
}
|
|
|
|
type RESPReply = Array<string | number | RESPReply>;
|
|
|
|
export declare function transformReply(): RESPReply;
|