Skip to content

Commit

Permalink
fix(typescript): add types for string and object together for the key…
Browse files Browse the repository at this point in the history
… property
  • Loading branch information
krisk authored Jun 22, 2020
2 parents a3892ec + bd56943 commit 85fb211
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare class Fuse<T, O extends Fuse.IFuseOptions<T>> {
* @returns An indexed list
*/
static createIndex<U>(
keys: Fuse.FuseOptionKeyObject[] | string[],
keys: Array<Fuse.FuseOptionKeyObject | string>,
list: ReadonlyArray<U>,
options?: Fuse.FuseIndexOptions<U>
): FuseIndex<U>
Expand Down Expand Up @@ -241,7 +241,7 @@ declare namespace Fuse {
ignoreFieldNorm?: boolean
includeMatches?: boolean
includeScore?: boolean
keys?: FuseOptionKeyObject[] | string[]
keys?: Array<FuseOptionKeyObject | string>
location?: number
minMatchCharLength?: number
shouldSort?: boolean
Expand Down

0 comments on commit 85fb211

Please sign in to comment.