Skip to content

Commit

Permalink
chore: 1.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Baroshem committed Apr 8, 2024
1 parent c248e56 commit bd6150f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nuxtjs/algolia",
"version": "1.10.1",
"version": "1.10.2",
"description": "Algolia module for Nuxt",
"repository": {
"type": "git",
Expand Down
5 changes: 3 additions & 2 deletions src/runtime/composables/useAsyncAlgoliaSearch.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
/* eslint-disable no-redeclare */
import type { RequestOptionsObject } from '../../types'
import type { RequestOptionsObject, SearchResponse } from '../../types'
import { useAlgoliaInitIndex } from './useAlgoliaInitIndex'
import { useNuxtApp, useAsyncData, useRuntimeConfig } from '#imports'
import type { AsyncData } from '#app';

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

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

Expand Down

0 comments on commit bd6150f

Please sign in to comment.