File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
packages/search/lib/commands Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,7 @@ export enum SchemaFieldTypes {
175
175
TAG = 'TAG'
176
176
}
177
177
178
- type CreateSchemaField < T extends SchemaFieldTypes , E = Record < string , never > > = T | ( {
178
+ type CreateSchemaField < T extends SchemaFieldTypes , E = Record < keyof any , any > > = T | ( {
179
179
type : T ;
180
180
AS ?: string ;
181
181
SORTABLE ?: true | 'UNF' ;
@@ -209,7 +209,7 @@ export interface RediSearchSchema {
209
209
CreateSchemaTextField |
210
210
CreateSchemaNumericField |
211
211
CreateSchemaGeoField |
212
- CreateSchemaTagField
212
+ CreateSchemaTagField ;
213
213
}
214
214
215
215
export function pushSchema ( args : RedisCommandArguments , schema : RediSearchSchema ) {
@@ -228,7 +228,7 @@ export function pushSchema(args: RedisCommandArguments, schema: RediSearchSchema
228
228
args . push ( fieldOptions . type ) ;
229
229
230
230
switch ( fieldOptions . type ) {
231
- case ' TEXT' :
231
+ case SchemaFieldTypes . TEXT :
232
232
if ( fieldOptions . NOSTEM ) {
233
233
args . push ( 'NOSTEM' ) ;
234
234
}
@@ -243,11 +243,11 @@ export function pushSchema(args: RedisCommandArguments, schema: RediSearchSchema
243
243
244
244
break ;
245
245
246
- // case ' NUMERIC' :
247
- // case ' GEO' :
246
+ // case SchemaFieldTypes. NUMERIC:
247
+ // case SchemaFieldTypes. GEO:
248
248
// break;
249
249
250
- case ' TAG' :
250
+ case SchemaFieldTypes . TAG :
251
251
if ( fieldOptions . SEPARATOR ) {
252
252
args . push ( 'SEPARATOR' , fieldOptions . SEPARATOR ) ;
253
253
}
You can’t perform that action at this time.
0 commit comments