1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

add buffer support to a bunch of commands

This commit is contained in:
leibale
2021-12-15 17:08:50 -05:00
parent 72072f6b1c
commit a1bed9a10f
88 changed files with 821 additions and 381 deletions

View File

@@ -1,4 +1,4 @@
import { RedisCommandArguments } from '.';
import { RedisCommandArgument, RedisCommandArguments } from '.';
type Types = string | number | Buffer;
@@ -10,7 +10,7 @@ type HSETTuples = Array<[Types, Types]> | Array<Types>;
export const FIRST_KEY_INDEX = 1;
type GenericArguments = [key: string | Buffer];
type GenericArguments = [key: RedisCommandArgument];
type SingleFieldArguments = [...generic: GenericArguments, field: Types, value: Types];