@valkey/client
Version:
The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.
20 lines (19 loc) • 771 B
TypeScript
import { ValkeyCommandArgument, ValkeyCommandArguments } from ".";
export declare const FIRST_KEY_INDEX = 1;
type Types = ValkeyCommandArgument | number;
type HSETObject = Record<string | number, Types>;
type HSETMap = Map<Types, Types>;
type HSETTuples = Array<[Types, Types]> | Array<Types>;
type GenericArguments = [key: ValkeyCommandArgument];
type SingleFieldArguments = [
...generic: GenericArguments,
field: Types,
value: Types
];
type MultipleFieldsArguments = [
...generic: GenericArguments,
value: HSETObject | HSETMap | HSETTuples
];
export declare function transformArguments(...[key, value, fieldValue]: SingleFieldArguments | MultipleFieldsArguments): ValkeyCommandArguments;
export declare function transformReply(): number;
export {};