Skip to content

Commit

Permalink
fix: add missing imports for search (#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barbapapazes committed Nov 8, 2023
1 parent 7dcbf13 commit dcafe11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .nuxtrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports.autoImport=false
typescript.includeWorkspace=true
2 changes: 1 addition & 1 deletion src/runtime/composables/search.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import MiniSearch, { type Options as MiniSearchOptions } from 'minisearch'
import { useRuntimeConfig, useFetch } from '#imports'
import { useRuntimeConfig, useFetch, type MaybeRefOrGetter, ref, computed, toValue, type Ref } from '#imports'

export const defineMiniSearchOptions = <DataItem>(options: MiniSearchOptions<DataItem>) => {
return ref(options)
Expand Down

0 comments on commit dcafe11

Please sign in to comment.