Skip to content

Commit

Permalink
docs: unfined defineNuxtPlugin migration guide for nuxt bridge #22433
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienZ committed Sep 6, 2023
1 parent fe29948 commit e4f5811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/6.bridge/3.bridge-composition-api.md
Expand Up @@ -94,7 +94,9 @@ Remove the `defineNuxtPlugin` wrapper:
```diff
- import { defineNuxtPlugin } from '@nuxtjs/composition-api'
- export default defineNuxtPlugin((ctx, inject) => {})
+ export default (ctx, inject) => {}
+ export default defineNuxtPlugin(nuxtApp => {
+ // `inject` is now available as `nuxtApp.provide`
+ })
```

For typescript support, you can use `@nuxt/types`:
Expand Down

0 comments on commit e4f5811

Please sign in to comment.