Skip to content

Commit ba8604b

Browse files
authored
Merge pull request #191 from timlrx/fix/algolia-types
fix: remove dependency on algolia internal type
2 parents 2c49747 + ef38b03 commit ba8604b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.changeset/olive-ladybugs-perform.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'pliny': minor
3+
---
4+
5+
remove dependency on internal types

packages/pliny/src/search/Algolia.tsx

+1-2
Original file line numberDiff line numberDiff 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

1514
export 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>

0 commit comments

Comments
 (0)