You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-03 04:01:40 +03:00
* (docs) bloom: add jsdocs for all commands * (docs) json: add jsdocs * (docs) search: add jsdocs for all commands * (docs) jsdocs for std commands * (docs) jsdoc comments to time series commands
18 lines
588 B
TypeScript
18 lines
588 B
TypeScript
import { Command } from '@redis/client/dist/lib/RESP/types';
|
|
import RANGE, { transformRangeArguments } from './RANGE';
|
|
|
|
export default {
|
|
IS_READ_ONLY: RANGE.IS_READ_ONLY,
|
|
/**
|
|
* Gets samples from a time series within a time range (in reverse order)
|
|
* @param args - Arguments passed to the {@link transformRangeArguments} function
|
|
*/
|
|
parseCommand(...args: Parameters<typeof transformRangeArguments>) {
|
|
const parser = args[0];
|
|
|
|
parser.push('TS.REVRANGE');
|
|
transformRangeArguments(...args);
|
|
},
|
|
transformReply: RANGE.transformReply
|
|
} as const satisfies Command;
|