diff --git a/lib/transaction.ts b/lib/transaction.ts index 9f0c3ba50..de2d4ff6d 100644 --- a/lib/transaction.ts +++ b/lib/transaction.ts @@ -5,11 +5,11 @@ import { Callback } from "./types"; import { ChainableCommander } from "./utils/RedisCommander"; export interface Transaction { - pipeline(commands?: [name: string, ...args: unknown[]][]): ChainableCommander; + pipeline(commands?: string[]): ChainableCommander; multi(options: { pipeline: false }): Promise<"OK">; multi(): ChainableCommander; multi(options: { pipeline: true }): ChainableCommander; - multi(commands?: [name: string, ...args: unknown[]][]): ChainableCommander; + multi(commands?: string[]): ChainableCommander; } export function addTransactionSupport(redis) {