import type { CommandOptions } from "./command"; import { Command } from "./command"; type XAckDelOption = "KEEPREF" | "keepref" | "DELREF" | "delref" | "ACKED" | "acked"; /** * @see https://redis.io/commands/xackdel * @see node_modules/@upstash/redis/docs/commands/stream/xackdel.mdx */ export class XAckDelCommand extends Command { constructor( [key, group, opts, ...ids]: [key: string, group: string, opts: XAckDelOption, ...ids: string[]], cmdOpts?: CommandOptions ) { const command: unknown[] = ["XACKDEL", key, group]; command.push(opts.toUpperCase(), "IDS", ids.length, ...ids); super(command, cmdOpts); } }