You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Indicates whether comparisons should be case sensitive. */
@@ -255,13 +256,13 @@ declare namespace Fuse {
255
256
/** When `true`, the calculation for the relevance score (used for sorting) will ignore the `field-length norm`. */
256
257
ignoreFieldNorm?: boolean
257
258
/** Determines how much the `field-length norm` affects scoring. A value of `0` is equivalent to ignoring the field-length norm. A value of `0.5` will greatly reduce the effect of field-length norm, while a value of `2.0` will greatly increase it. */
258
-
fieldNormWeight: number
259
+
fieldNormWeight?: number
259
260
/** Whether the matches should be included in the result set. When `true`, each record in the result set will include the indices of the matched characters. These can consequently be used for highlighting purposes. */
260
261
includeMatches?: boolean
261
262
/** Whether the score should be included in the result set. A score of `0`indicates a perfect match, while a score of `1` indicates a complete mismatch. */
262
263
includeScore?: boolean
263
264
/** List of keys that will be searched. This supports nested paths, weighted search, searching in arrays of `strings` and `objects`. */
264
-
keys?: Array<FuseOptionKey>
265
+
keys?: Array<FuseOptionKey<T>>
265
266
/** Determines approximately where in the text is the pattern expected to be found. */
266
267
location?: number
267
268
/** Only the matches whose length exceeds this value will be returned. (For instance, if you want to ignore single character matches in the result, set it to `2`). */
/** Indicates whether comparisons should be case sensitive. */
@@ -252,13 +253,13 @@ declare namespace Fuse {
252
253
/** When `true`, the calculation for the relevance score (used for sorting) will ignore the `field-length norm`. */
253
254
ignoreFieldNorm?: boolean
254
255
/** Determines how much the `field-length norm` affects scoring. A value of `0` is equivalent to ignoring the field-length norm. A value of `0.5` will greatly reduce the effect of field-length norm, while a value of `2.0` will greatly increase it. */
255
-
fieldNormWeight: number
256
+
fieldNormWeight?: number
256
257
/** Whether the matches should be included in the result set. When `true`, each record in the result set will include the indices of the matched characters. These can consequently be used for highlighting purposes. */
257
258
includeMatches?: boolean
258
259
/** Whether the score should be included in the result set. A score of `0`indicates a perfect match, while a score of `1` indicates a complete mismatch. */
259
260
includeScore?: boolean
260
261
/** List of keys that will be searched. This supports nested paths, weighted search, searching in arrays of `strings` and `objects`. */
261
-
keys?: Array<FuseOptionKey>
262
+
keys?: Array<FuseOptionKey<T>>
262
263
/** Determines approximately where in the text is the pattern expected to be found. */
263
264
location?: number
264
265
/** Only the matches whose length exceeds this value will be returned. (For instance, if you want to ignore single character matches in the result, set it to `2`). */
0 commit comments