diff --git a/packages/search/lib/commands/index.ts b/packages/search/lib/commands/index.ts index bc8eaf140fb..6eca34a4a0f 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'; };