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
Copy file name to clipboardExpand all lines: src/index.d.ts
+9-22Lines changed: 9 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -178,10 +178,8 @@ declare namespace Fuse {
178
178
// 'n': 0.5773502691896258
179
179
// }
180
180
typeRecordEntryObject={
181
-
/** The text value */
182
-
v: string
183
-
/** The field-length norm */
184
-
n: number
181
+
v: string// The text value
182
+
n: number// The field-length norm
185
183
}
186
184
187
185
// 'author.tags.name': [{
@@ -207,8 +205,7 @@ declare namespace Fuse {
207
205
// }
208
206
// }
209
207
typeFuseIndexObjectRecord={
210
-
/** The index of the record in the source list */
211
-
i: number
208
+
i: number// The index of the record in the source list
212
209
$: RecordEntry
213
210
}
214
211
@@ -221,33 +218,23 @@ declare namespace Fuse {
221
218
// ]
222
219
// }
223
220
typeFuseIndexStringRecord={
224
-
/** The index of the record in the source list */
225
-
i: number
226
-
/** The text value */
227
-
v: string
228
-
/** The field-length norm */
229
-
n: number
221
+
i: number// The index of the record in the source list
222
+
v: string// The text value
223
+
n: number// The field-length norm
230
224
}
231
225
232
226
typeFuseIndexRecords=
233
227
|ReadonlyArray<FuseIndexObjectRecord>
234
228
|ReadonlyArray<FuseIndexStringRecord>
235
-
236
-
typeFuseOptionKeyObjectGetFunction<T>=(
237
-
obj: T,
238
-
)=>ReadonlyArray<string>|string
239
229
240
230
// {
241
231
// name: 'title',
242
-
// weight: 0.7,
243
-
// getFn: (book) => book.title
232
+
// weight: 0.7
244
233
// }
245
234
exporttypeFuseOptionKeyObject<T>={
246
-
name: string|string[]
247
-
/** Adjust the weight of each key to give them higher (or lower) values in search results. The `weight` value must be greater than zero. If undefined, it will default to `1`. Internally, Fuse will normalize weights to be within `0` and `1` exclusive. */
235
+
name: string|string[]
248
236
weight?: number
249
-
/** The function to use to retrieve an object's value */
0 commit comments