import type { CommandOptions } from "./command"; import { Command } from "./command"; /** * @see https://redis.io/commands/script-exists * @see node_modules/@upstash/redis/docs/commands/scripts/script_exists.mdx */ export class ScriptExistsCommand extends Command { constructor(hashes: T, opts?: CommandOptions) { super(["script", "exists", ...hashes], { deserialize: (result) => result as unknown as number[], ...opts, }); } }