Skip to content

Commit

Permalink
fix(plugins): infer type from #app
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Nov 28, 2024
1 parent b250118 commit 3a4fa3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/plugins/dns.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { defineNuxtPlugin } from '#imports'
// FIXME: https://github.com/nuxt/module-builder/issues/141#issuecomment-2078248248
import type {} from '#app'

// Fixes `ECONNREFUSED` on Node 18: https://github.com/node-fetch/node-fetch/issues/1624#issuecomment-1407717012
export default defineNuxtPlugin({
Expand Down
2 changes: 2 additions & 0 deletions src/runtime/plugins/strapi.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { useStrapiAuth } from '../composables/useStrapiAuth'
import { useStrapiUser } from '../composables/useStrapiUser'
import { defineNuxtPlugin } from '#imports'
// FIXME: https://github.com/nuxt/module-builder/issues/141#issuecomment-2078248248
import type {} from '#app'

export default defineNuxtPlugin(async () => {
const user = useStrapiUser()
Expand Down

0 comments on commit 3a4fa3e

Please sign in to comment.