import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/xack * @see node_modules/@upstash/redis/docs/commands/stream/xack.mdx */ export class XAckCommand extends Command { constructor( [key, group, id]: [key: string, group: string, id: string | string[]], opts?: CommandOptions ) { const ids = Array.isArray(id) ? [...id] : [id]; super(["XACK", key, group, ...ids], opts); } }