Skip to content

Commit 00bf28a

Browse files
committed
fix: docsearch types
1 parent 1aaba17 commit 00bf28a

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/shim.d.ts

-4
This file was deleted.

src/vitepress/components/VPAlgoliaSearchBox.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function initialize(userOptions: AlgoliaSearchOptions) {
6363
return items.map((item) => {
6464
return Object.assign({}, item, {
6565
url: getRelativePath(item.url)
66-
})
66+
}) as any
6767
})
6868
},
6969

src/vitepress/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export interface Config {
8686
* @docsearch/react/dist/esm/DocSearch.d.ts
8787
*/
8888
export interface AlgoliaSearchOptions {
89-
appId?: string
89+
appId: string
9090
apiKey: string
9191
indexName: string
9292
placeholder?: string

0 commit comments

Comments
 (0)