Closed VladimirChuprazov closed 1 year ago
SortByProperty type accepts only PropertyName type, but should accept just string.
SortByProperty
PropertyName
string
// packages/search/lib/commands/index.ts:137 export type PropertyName = `${'@' | '$.'}${string}`; export type SortByProperty = PropertyName | { BY: PropertyName; DIRECTION?: 'ASC' | 'DESC'; };
Even in examples it is used without $. or @ https://github.com/redis/node-redis/blob/master/examples/search-hashes.js#L51
Maybe related to the #2229
Environment:
duplicate of #2229
SortByProperty
type accepts onlyPropertyName
type, but should accept juststring
.Even in examples it is used without $. or @ https://github.com/redis/node-redis/blob/master/examples/search-hashes.js#L51
Maybe related to the #2229
Environment: