You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
471 B
15 lines
471 B
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.transformArguments = exports.IS_READ_ONLY = void 0;
|
|
exports.IS_READ_ONLY = true;
|
|
function transformArguments(key, prefix, options) {
|
|
const args = ['FT.SUGGET', key, prefix];
|
|
if (options?.FUZZY) {
|
|
args.push('FUZZY');
|
|
}
|
|
if (options?.MAX) {
|
|
args.push('MAX', options.MAX.toString());
|
|
}
|
|
return args;
|
|
}
|
|
exports.transformArguments = transformArguments;
|
|
|