-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When following the docs, the auto completion for the index name works, but result.value.hits is not typed:
import '@nuxtjs/algolia'
declare module '@nuxtjs/algolia' {
interface AlgoliaIndices {
someIndex: {
foo: string;
bar: number;
}
}<script lang="ts" setup>
const { result, search } = useAlgoliaSearch('someIndex') // <-- Auto-completion works
await search({ query: 'test' })
result.value.hits[0].bar = '1'; // <-- TS Error
</script>krzysztofkaszanek, simonmaass and MickL
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
