1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-04-23 07:56:15 -04:00
parent 35d32e5b64
commit 9faa3e77c4
326 changed files with 14620 additions and 10931 deletions

View File

@@ -1,11 +1,11 @@
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { Filter } from '.';
export const IS_READ_ONLY = true;
export function transformArguments(filter: Filter): RedisCommandArguments {
return pushVerdictArguments(['TS.QUERYINDEX'], filter);
return pushVariadicArguments(['TS.QUERYINDEX'], filter);
}
export declare function transformReply(): Array<string>;

View File

@@ -20,7 +20,7 @@ import * as MRANGE_WITHLABELS from './MRANGE_WITHLABELS';
import * as MREVRANGE from './MREVRANGE';
import * as MREVRANGE_WITHLABELS from './MREVRANGE_WITHLABELS';
import { RedisCommandArguments } from '@redis/client/dist/lib/commands';
import { pushVerdictArguments } from '@redis/client/dist/lib/commands/generic-transformers';
import { pushVariadicArguments } from '@redis/client/dist/lib/commands/generic-transformers';
export default {
ADD,
@@ -364,7 +364,7 @@ export type Filter = string | Array<string>;
export function pushFilterArgument(args: RedisCommandArguments, filter: string | Array<string>): RedisCommandArguments {
args.push('FILTER');
return pushVerdictArguments(args, filter);
return pushVariadicArguments(args, filter);
}
export interface MRangeOptions extends RangeOptions {
@@ -390,7 +390,7 @@ export function pushWithLabelsArgument(args: RedisCommandArguments, selectedLabe
args.push('WITHLABELS');
} else {
args.push('SELECTED_LABELS');
args = pushVerdictArguments(args, selectedLabels);
args = pushVariadicArguments(args, selectedLabels);
}
return args;