Skip to content

Commit 0a2581e

Browse files
committed
fix(ts): don't require every attribute to be highlighted
1 parent a935d88 commit 0a2581e

File tree

1 file changed

+1
-1
lines changed
  • packages/client-search/src/types

1 file changed

+1
-1
lines changed

packages/client-search/src/types/Hit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ type HighlightMatch = {
88
export type HighlightResult<THit> = THit extends string | number
99
? HighlightMatch
1010
: {
11-
[KAttribute in keyof THit]: HighlightResult<THit[KAttribute]>;
11+
[KAttribute in keyof THit]?: HighlightResult<THit[KAttribute]>;
1212
};
1313

1414
type SnippetMatch = {

0 commit comments

Comments
 (0)