You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
export RediSearchSchema type (#1825)
* export RediSearchSchema type * export SearchOptions and SearchReply
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { pushOptionalVerdictArgument } from '@node-redis/client/dist/lib/commands/generic-transformers';
|
||||
import { RedisSearchLanguages, PropertyName, CreateSchema, pushSchema } from '.';
|
||||
import { RedisSearchLanguages, PropertyName, RediSearchSchema, pushSchema } from '.';
|
||||
|
||||
interface CreateOptions {
|
||||
ON?: 'HASH' | 'JSON';
|
||||
@@ -20,7 +20,7 @@ interface CreateOptions {
|
||||
STOPWORDS?: string | Array<string>;
|
||||
}
|
||||
|
||||
export function transformArguments(index: string, schema: CreateSchema, options?: CreateOptions): Array<string> {
|
||||
export function transformArguments(index: string, schema: RediSearchSchema, options?: CreateOptions): Array<string> {
|
||||
const args = ['FT.CREATE', index];
|
||||
|
||||
if (options?.ON) {
|
||||
|
Reference in New Issue
Block a user