Debian Codegraph @

packages/search/lib/commands/DROPINDEX.ts

raw
1 interface DropIndexOptions {
2 DD?: true;
3 }
4
5 export function transformArguments(index: string, options?: DropIndexOptions): Array<string> {
6 const args = ['FT.DROPINDEX', index];
7
8 if (options?.DD) {
9 args.push('DD');
10 }
11
12 return args;
13 }
14
15 export declare function transformReply(): 'OK';