import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/json.arrlen * @see node_modules/@upstash/redis/docs/commands/json/arrlen.mdx */ export class JsonArrLenCommand extends Command<(null | string)[], (null | number)[]> { constructor( cmd: [key: string, path?: string], opts?: CommandOptions<(null | string)[], (null | number)[]> ) { super(["JSON.ARRLEN", cmd[0], cmd[1] ?? "$"], opts); } }