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

fix(search): fix types for sort (#2343)

This commit is contained in:
Vladimir Chuprazov
2022-12-15 00:03:30 +02:00
committed by GitHub
parent da3face951
commit ab69c81c36

View File

@@ -134,8 +134,8 @@ export enum RedisSearchLanguages {
export type PropertyName = `${'@' | '$.'}${string}`; export type PropertyName = `${'@' | '$.'}${string}`;
export type SortByProperty = PropertyName | { export type SortByProperty = string | {
BY: PropertyName; BY: string;
DIRECTION?: 'ASC' | 'DESC'; DIRECTION?: 'ASC' | 'DESC';
}; };