Skip to content

Commit

Permalink
fix: type mismatch on toJSON
Browse files Browse the repository at this point in the history
  • Loading branch information
onhate authored and krisk committed May 3, 2022
1 parent 2c78022 commit f5425ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/fuse.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ declare namespace Fuse {
add(doc: T): void
toJSON(): {
keys: ReadonlyArray<string>
collection: FuseIndexRecords
records: FuseIndexRecords
}
}

Expand Down Expand Up @@ -290,6 +290,6 @@ declare namespace Fuse {
}
| { $and?: Expression[] }
| { $or?: Expression[] }

export const config: Required<IFuseOptions<any>>;
}
4 changes: 2 additions & 2 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ declare namespace Fuse {
add(doc: T): void
toJSON(): {
keys: ReadonlyArray<string>
collection: FuseIndexRecords
records: FuseIndexRecords
}
}

Expand Down Expand Up @@ -304,6 +304,6 @@ declare namespace Fuse {
}
| { $and?: Expression[] }
| { $or?: Expression[] }

export const config: Required<IFuseOptions<any>>;
}

0 comments on commit f5425ea

Please sign in to comment.