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:
@@ -204,7 +204,7 @@ type CreateSchemaTagField = CreateSchemaField<SchemaFieldTypes.TAG, {
|
||||
CASESENSITIVE?: true;
|
||||
}>;
|
||||
|
||||
export interface CreateSchema {
|
||||
export interface RediSearchSchema {
|
||||
[field: string]:
|
||||
CreateSchemaTextField |
|
||||
CreateSchemaNumericField |
|
||||
@@ -212,7 +212,7 @@ export interface CreateSchema {
|
||||
CreateSchemaTagField
|
||||
}
|
||||
|
||||
export function pushSchema(args: RedisCommandArguments, schema: CreateSchema) {
|
||||
export function pushSchema(args: RedisCommandArguments, schema: RediSearchSchema) {
|
||||
for (const [field, fieldOptions] of Object.entries(schema)) {
|
||||
args.push(field);
|
||||
|
||||
@@ -396,7 +396,6 @@ export interface SearchReply {
|
||||
}>;
|
||||
}
|
||||
|
||||
|
||||
export interface ProfileOptions {
|
||||
LIMITED?: true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user