Skip to content

Commit

Permalink
fix(ts): don't require every attribute to be highlighted (#1234)
Browse files Browse the repository at this point in the history
  • Loading branch information
Haroenv authored Nov 25, 2020
1 parent a935d88 commit 4591d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client-search/src/types/Hit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type HighlightMatch = {
export type HighlightResult<THit> = THit extends string | number
? HighlightMatch
: {
[KAttribute in keyof THit]: HighlightResult<THit[KAttribute]>;
[KAttribute in keyof THit]?: HighlightResult<THit[KAttribute]>;
};

type SnippetMatch = {
Expand Down

0 comments on commit 4591d0e

Please sign in to comment.