1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

ref #1982 - fix redisearch schema types (#2348)

This commit is contained in:
Leibale Eidelman
2022-12-14 17:11:28 -05:00
committed by GitHub
parent ab69c81c36
commit ce1b8f7f4e

View File

@@ -187,7 +187,7 @@ export enum SchemaFieldTypes {
type CreateSchemaField< type CreateSchemaField<
T extends SchemaFieldTypes, T extends SchemaFieldTypes,
E = Record<keyof any, any> E = Record<PropertyKey, unknown>
> = T | ({ > = T | ({
type: T; type: T;
AS?: string; AS?: string;
@@ -195,7 +195,7 @@ type CreateSchemaField<
type CreateSchemaCommonField< type CreateSchemaCommonField<
T extends SchemaFieldTypes, T extends SchemaFieldTypes,
E = Record<string, never> E = Record<PropertyKey, unknown>
> = CreateSchemaField< > = CreateSchemaField<
T, T,
({ ({