UNPKG

@valkey/client

Version:

The source code and documentation for this package are in the main [node-redis](https://github.com/redis/node-redis) repo.

14 lines (13 loc) 428 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isCommandOptions = exports.commandOptions = void 0; const symbol = Symbol('Command Options'); function commandOptions(options) { options[symbol] = true; return options; } exports.commandOptions = commandOptions; function isCommandOptions(options) { return options?.[symbol] === true; } exports.isCommandOptions = isCommandOptions;