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

better types

This commit is contained in:
leibale
2021-09-18 05:58:08 -04:00
parent 0ab2245049
commit 54124793ad
3 changed files with 5 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
import { TransformArgumentsReply } from '.';
import { BitValue, transformReplyBit } from './generic-transformers';
export const FIRST_KEY_INDEX = 1;
export function transformArguments(key: string, offset: number, value: BitValue) {
export function transformArguments(key: string, offset: number, value: BitValue): TransformArgumentsReply {
return ['SETBIT', key, offset.toString(), value.toString()];
}