Skip to content

Commit bd6150f

Browse files
committed
chore: 1.10.2
1 parent c248e56 commit bd6150f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nuxtjs/algolia",
3-
"version": "1.10.1",
3+
"version": "1.10.2",
44
"description": "Algolia module for Nuxt",
55
"repository": {
66
"type": "git",

src/runtime/composables/useAsyncAlgoliaSearch.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/* eslint-disable no-redeclare */
2-
import type { RequestOptionsObject } from '../../types'
2+
import type { RequestOptionsObject, SearchResponse } from '../../types'
33
import { useAlgoliaInitIndex } from './useAlgoliaInitIndex'
44
import { useNuxtApp, useAsyncData, useRuntimeConfig } from '#imports'
5+
import type { AsyncData } from '#app';
56

67
export type AsyncSearchParams = { query: string, indexName?: string, key?: string } & RequestOptionsObject;
78

8-
export async function useAsyncAlgoliaSearch ({ query, requestOptions, indexName, key }: AsyncSearchParams) {
9+
export async function useAsyncAlgoliaSearch ({ query, requestOptions, indexName, key }: AsyncSearchParams): Promise<AsyncData<SearchResponse<unknown>, Error>> {
910
const config = useRuntimeConfig()
1011
const index = indexName || config.public.algolia.globalIndex
1112

0 commit comments

Comments
 (0)