Skip to content

Commit

Permalink
Fix needle type
Browse files Browse the repository at this point in the history
  • Loading branch information
Studio384 committed Feb 18, 2024
1 parent 2f6e2ae commit 9240c54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/src/hooks/useSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface ISeachResults {
_score: number;
}

export default function useSearch(haystack: any[] | undefined, keys: string[], needle?: string) {
export default function useSearch(haystack: any[] | undefined, keys: string[], needle: string) {
const flattenObject = useCallback((item: { [key: string]: any }, prefix?: string) => {
const flattened: { [key: string]: any } = {};
prefix = prefix ? prefix + '.' : '';
Expand Down
2 changes: 1 addition & 1 deletion docs/stats/index.html

Large diffs are not rendered by default.

0 comments on commit 9240c54

Please sign in to comment.