1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +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<
T extends SchemaFieldTypes,
E = Record<keyof any, any>
E = Record<PropertyKey, unknown>
> = T | ({
type: T;
AS?: string;
@@ -195,7 +195,7 @@ type CreateSchemaField<
type CreateSchemaCommonField<
T extends SchemaFieldTypes,
E = Record<string, never>
E = Record<PropertyKey, unknown>
> = CreateSchemaField<
T,
({