-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(highlighting): support array syntax for nested attributes (#418)
* support array syntax for nested attributes fix `parseAlgoliaHit*` tests * Increase bundle size Co-authored-by: François Chalifour <[email protected]>
- Loading branch information
1 parent
1eecc65
commit 4ad4e41
Showing
15 changed files
with
1,200 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/autocomplete-preset-algolia/src/highlight/ParseAlgoliaHitParams.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export type ParseAlgoliaHitParams<TItem> = { | ||
hit: TItem; | ||
attribute: keyof TItem; | ||
attribute: keyof TItem | string[]; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.