Skip to content

Commit 576bda2

Browse files
committed
move true type to boolean type
1 parent 4887bd0 commit 576bda2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/search/lib/commands/index.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ export enum SchemaFieldTypes {
190190
}
191191

192192
export interface MissingValues {
193-
INDEXEMPTY?: true;
194-
INDEXMISSING?: true;
193+
INDEXEMPTY?: boolean;
194+
INDEXMISSING?: boolean;
195195
}
196196

197197
function pushMissingValues(args: RedisCommandArguments, missingValues?: MissingValues) {
@@ -214,7 +214,7 @@ type CreateSchemaField<
214214
> = T | ({
215215
type: T;
216216
AS?: string;
217-
INDEXMISSING?: true;
217+
INDEXMISSING?: boolean;
218218
} & E);
219219

220220
type CreateSchemaCommonField<
@@ -240,7 +240,7 @@ type CreateSchemaTextField = CreateSchemaCommonField<SchemaFieldTypes.TEXT, {
240240
WEIGHT?: number;
241241
PHONETIC?: SchemaTextFieldPhonetics;
242242
WITHSUFFIXTRIE?: boolean;
243-
INDEXEMPTY?: true;
243+
INDEXEMPTY?: boolean;
244244
}>;
245245

246246
type CreateSchemaNumericField = CreateSchemaCommonField<SchemaFieldTypes.NUMERIC>;
@@ -251,7 +251,7 @@ type CreateSchemaTagField = CreateSchemaCommonField<SchemaFieldTypes.TAG, {
251251
SEPARATOR?: string;
252252
CASESENSITIVE?: true;
253253
WITHSUFFIXTRIE?: boolean;
254-
INDEXEMPTY?: true;
254+
INDEXEMPTY?: boolean;
255255
}>;
256256

257257
export enum VectorAlgorithms {

0 commit comments

Comments
 (0)