diff --git a/lib/commands/SETBIT.ts b/lib/commands/SETBIT.ts index 0cd41d1b97..33b2ff1a83 100644 --- a/lib/commands/SETBIT.ts +++ b/lib/commands/SETBIT.ts @@ -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()]; } diff --git a/lib/commands/index.ts b/lib/commands/index.ts index 6e5310b811..2c1a02d224 100644 --- a/lib/commands/index.ts +++ b/lib/commands/index.ts @@ -743,9 +743,9 @@ export type TransformArgumentsReply = Array & { preserve?: unkn export interface RedisCommand { FIRST_KEY_INDEX?: number | ((...args: Array) => string); IS_READ_ONLY?: boolean; - transformArguments(...args: Array): TransformArgumentsReply; + transformArguments(this: void, zpte...args: Array): TransformArgumentsReply; BUFFER_MODE?: boolean; - transformReply(reply: RedisReply, preserved?: unknown): any; + transformReply(this: void, reply: RedisReply, preserved?: unknown): any; } export interface RedisCommands { diff --git a/lib/test-utils.ts b/lib/test-utils.ts index f68857d61e..8468592369 100644 --- a/lib/test-utils.ts +++ b/lib/test-utils.ts @@ -1,7 +1,5 @@ import { strict as assert } from 'assert'; import RedisClient, { RedisClientType } from './client'; -import { RedisModules } from './commands'; -import { RedisLuaScripts } from './lua-script'; import { execSync, spawn } from 'child_process'; import { once } from 'events'; import { RedisSocketOptions } from './socket'; @@ -370,4 +368,4 @@ export async function waitTillBeenCalled(spy: SinonSpy): Promise { await promiseTimeout(1); } while (spy.callCount === calls) -} \ No newline at end of file +}