From ab69c81c363998f3e15b567e8fef45b34abed41f Mon Sep 17 00:00:00 2001 From: Vladimir Chuprazov <82871772+VladimirChuprazov@users.noreply.github.com> Date: Thu, 15 Dec 2022 00:03:30 +0200 Subject: [PATCH] fix(search): fix types for sort (#2343) --- packages/search/lib/commands/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/search/lib/commands/index.ts b/packages/search/lib/commands/index.ts index bc8eaf140f..6eca34a4a0 100644 --- a/packages/search/lib/commands/index.ts +++ b/packages/search/lib/commands/index.ts @@ -134,8 +134,8 @@ export enum RedisSearchLanguages { export type PropertyName = `${'@' | '$.'}${string}`; -export type SortByProperty = PropertyName | { - BY: PropertyName; +export type SortByProperty = string | { + BY: string; DIRECTION?: 'ASC' | 'DESC'; };