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

add missing FIRST_KEY_INDEX (#2028)

This commit is contained in:
Leibale Eidelman
2022-03-08 17:26:13 -05:00
committed by GitHub
parent f79e14c8c3
commit c57da8b78b
9 changed files with 17 additions and 8 deletions

View File

@ -1,6 +1,8 @@
import { RedisCommandArgument, RedisCommandArguments } from '.';
import { GeoCoordinates } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
interface GeoMember extends GeoCoordinates {
member: RedisCommandArgument;
}
@ -21,8 +23,6 @@ interface GeoAddCommonOptions {
type GeoAddOptions = SetGuards & GeoAddCommonOptions;
export const FIRST_KEY_INDEX = 1;
export function transformArguments(
key: RedisCommandArgument, toAdd: GeoMember | Array<GeoMember>,
options?: GeoAddOptions