1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

some more commands, multi.exec<'typed'>

This commit is contained in:
Leibale
2023-04-24 19:50:58 -04:00
parent 39bcac6484
commit b272f18818
13 changed files with 171 additions and 132 deletions

View File

@@ -1,14 +1,15 @@
import { RedisCommandArgument, RedisCommandArguments } from '.';
import { RedisArgument, NumberReply, Command } from '../RESP/types';
import { BitValue } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
export function transformArguments(
key: RedisCommandArgument,
export default {
IS_READ_ONLY: false,
FIRST_KEY_INDEX: 1,
transformArguments(
key: RedisArgument,
offset: number,
value: BitValue
): RedisCommandArguments {
) {
return ['SETBIT', key, offset.toString(), value.toString()];
}
export declare function transformReply(): BitValue;
},
transformReply: undefined as unknown as () => NumberReply<BitValue>
} as const satisfies Command;