-first commit
This commit is contained in:
25
node_modules/@redis/client/dist/lib/commands/HSET.d.ts
generated
vendored
Normal file
25
node_modules/@redis/client/dist/lib/commands/HSET.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
import { CommandParser } from '../client/parser';
|
||||
import { RedisArgument, NumberReply } from '../RESP/types';
|
||||
export type HashTypes = RedisArgument | number;
|
||||
type HSETObject = Record<string | number, HashTypes>;
|
||||
type HSETMap = Map<HashTypes, HashTypes>;
|
||||
type HSETTuples = Array<[HashTypes, HashTypes]> | Array<HashTypes>;
|
||||
type GenericArguments = [key: RedisArgument];
|
||||
type SingleFieldArguments = [...generic: GenericArguments, field: HashTypes, value: HashTypes];
|
||||
type MultipleFieldsArguments = [...generic: GenericArguments, value: HSETObject | HSETMap | HSETTuples];
|
||||
export type HSETArguments = SingleFieldArguments | MultipleFieldsArguments;
|
||||
declare const _default: {
|
||||
/**
|
||||
* Constructs the HSET command
|
||||
*
|
||||
* @param parser - The command parser
|
||||
* @param key - The key of the hash
|
||||
* @param value - Either the field name (when using single field) or an object/map/array of field-value pairs
|
||||
* @param fieldValue - The value to set (only used with single field variant)
|
||||
* @see https://redis.io/commands/hset/
|
||||
*/
|
||||
readonly parseCommand: (this: void, parser: CommandParser, ...[key, value, fieldValue]: SingleFieldArguments | MultipleFieldsArguments) => void;
|
||||
readonly transformReply: () => NumberReply;
|
||||
};
|
||||
export default _default;
|
||||
//# sourceMappingURL=HSET.d.ts.map
|
||||
Reference in New Issue
Block a user