import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * Empties every occupied slot inside one or more inclusive `[start, end]` ranges. * * Returns the total number of values removed across all ranges. * * @see https://upstash.com/docs/redis/commands/array/ardelrange * @see node_modules/@upstash/redis/docs/commands/array/ardelrange.mdx */ export class ArDelRangeCommand extends Command { constructor( [key, ...ranges]: [key: string, ...ranges: [start: number | string, end: number | string][]], opts?: CommandOptions ) { super(["ARDELRANGE", key, ...ranges.flat()], opts); } }