Skip to content

Commit 85fb211

Browse files
authored
fix(typescript): add types for string and object together for the key property
2 parents a3892ec + bd56943 commit 85fb211

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ declare class Fuse<T, O extends Fuse.IFuseOptions<T>> {
8282
* @returns An indexed list
8383
*/
8484
static createIndex<U>(
85-
keys: Fuse.FuseOptionKeyObject[] | string[],
85+
keys: Array<Fuse.FuseOptionKeyObject | string>,
8686
list: ReadonlyArray<U>,
8787
options?: Fuse.FuseIndexOptions<U>
8888
): FuseIndex<U>
@@ -241,7 +241,7 @@ declare namespace Fuse {
241241
ignoreFieldNorm?: boolean
242242
includeMatches?: boolean
243243
includeScore?: boolean
244-
keys?: FuseOptionKeyObject[] | string[]
244+
keys?: Array<FuseOptionKeyObject | string>
245245
location?: number
246246
minMatchCharLength?: number
247247
shouldSort?: boolean

0 commit comments

Comments
 (0)