File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
packages/pliny/src/search Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' pliny ' : minor
3+ ---
4+
5+ remove dependency on internal types
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import type {
1010 DocSearchProps ,
1111 DocSearchModalProps ,
1212} from '@docsearch/react'
13- import type { InternalDocSearchHit , StoredDocSearchHit } from '@docsearch/react/dist/esm/types'
1413
1514export type AlgoliaSearchProps = {
1615 algoliaConfig : DocSearchProps
@@ -51,7 +50,7 @@ function Hit({
5150 hit,
5251 children,
5352} : {
54- hit : InternalDocSearchHit | StoredDocSearchHit
53+ hit : Parameters < NonNullable < DocSearchProps [ 'hitComponent' ] > > [ 0 ] [ 'hit' ]
5554 children : React . ReactNode
5655} ) {
5756 return < CustomLink href = { hit . url } > { children } </ CustomLink >
You can’t perform that action at this time.
0 commit comments