Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
enkot committed Sep 23, 2023
1 parent b357822 commit ff71f85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/composables/useOpenFetchOptions.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { OpenFetchOptions } from '../../module'
import type { OpenFetchOptions } from '#imports'
import type { OpenFetchClientName } from '#build/module/nuxt-open-fetch'
import { useNuxtApp } from '#app'

Expand Down
3 changes: 2 additions & 1 deletion src/runtime/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import { defineNuxtPlugin, useRuntimeConfig } from '#app'
import { OpenFetchOptions } from '#imports'

export default defineNuxtPlugin((nuxtApp) => {
if (nuxtApp.$openFetch) return

const clients = useRuntimeConfig().public.openFetch.clients as Record<string, {
fetchOptions: any
fetchOptions: OpenFetchOptions
}>

return {
Expand Down

0 comments on commit ff71f85

Please sign in to comment.