Skip to content

Commit ab69c81

Browse files
fix(search): fix types for sort (#2343)
1 parent da3face commit ab69c81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/search/lib/commands/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ export enum RedisSearchLanguages {
134134

135135
export type PropertyName = `${'@' | '$.'}${string}`;
136136

137-
export type SortByProperty = PropertyName | {
138-
BY: PropertyName;
137+
export type SortByProperty = string | {
138+
BY: string;
139139
DIRECTION?: 'ASC' | 'DESC';
140140
};
141141

0 commit comments

Comments
 (0)