We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2c49747 + ef38b03 commit ba8604bCopy full SHA for ba8604b
.changeset/olive-ladybugs-perform.md
@@ -0,0 +1,5 @@
1
+---
2
+'pliny': minor
3
4
+
5
+remove dependency on internal types
packages/pliny/src/search/Algolia.tsx
@@ -10,7 +10,6 @@ import type {
10
DocSearchProps,
11
DocSearchModalProps,
12
} from '@docsearch/react'
13
-import type { InternalDocSearchHit, StoredDocSearchHit } from '@docsearch/react/dist/esm/types'
14
15
export type AlgoliaSearchProps = {
16
algoliaConfig: DocSearchProps
@@ -51,7 +50,7 @@ function Hit({
51
50
hit,
52
children,
53
}: {
54
- hit: InternalDocSearchHit | StoredDocSearchHit
+ hit: Parameters<NonNullable<DocSearchProps['hitComponent']>>[0]['hit']
55
children: React.ReactNode
56
}) {
57
return <CustomLink href={hit.url}>{children}</CustomLink>
0 commit comments