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
20 lines
534 B
TypeScript
20 lines
534 B
TypeScript
import { NumberReply, Command } from '../RESP/types';
|
|
import LCS from './LCS';
|
|
|
|
export default {
|
|
IS_READ_ONLY: LCS.IS_READ_ONLY,
|
|
/**
|
|
* Constructs the LCS command with LEN option
|
|
*
|
|
* @param args - The same parameters as LCS command
|
|
* @see https://redis.io/commands/lcs/
|
|
*/
|
|
parseCommand(...args: Parameters<typeof LCS.parseCommand>) {
|
|
const parser = args[0];
|
|
|
|
LCS.parseCommand(...args);
|
|
parser.push('LEN');
|
|
},
|
|
transformReply: undefined as unknown as () => NumberReply
|
|
} as const satisfies Command;
|