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 {
175175 TAG = 'TAG'
176176}
177177
178- type CreateSchemaField < T extends SchemaFieldTypes , E = Record < string , never > > = T | ( {
178+ type CreateSchemaField < T extends SchemaFieldTypes , E = Record < keyof any , any > > = T | ( {
179179 type : T ;
180180 AS ?: string ;
181181 SORTABLE ?: true | 'UNF' ;
@@ -209,7 +209,7 @@ export interface RediSearchSchema {
209209 CreateSchemaTextField |
210210 CreateSchemaNumericField |
211211 CreateSchemaGeoField |
212- CreateSchemaTagField
212+ CreateSchemaTagField ;
213213}
214214
215215export function pushSchema ( args : RedisCommandArguments , schema : RediSearchSchema ) {
@@ -228,7 +228,7 @@ export function pushSchema(args: RedisCommandArguments, schema: RediSearchSchema
228228 args . push ( fieldOptions . type ) ;
229229
230230 switch ( fieldOptions . type ) {
231- case ' TEXT' :
231+ case SchemaFieldTypes . TEXT :
232232 if ( fieldOptions . NOSTEM ) {
233233 args . push ( 'NOSTEM' ) ;
234234 }
@@ -243,11 +243,11 @@ export function pushSchema(args: RedisCommandArguments, schema: RediSearchSchema
243243
244244 break ;
245245
246- // case ' NUMERIC' :
247- // case ' GEO' :
246+ // case SchemaFieldTypes. NUMERIC:
247+ // case SchemaFieldTypes. GEO:
248248 // break;
249249
250- case ' TAG' :
250+ case SchemaFieldTypes . TAG :
251251 if ( fieldOptions . SEPARATOR ) {
252252 args . push ( 'SEPARATOR' , fieldOptions . SEPARATOR ) ;
253253 }
You can’t perform that action at this time.
0 commit comments