Nuxt/test/fixtures/basic/plugins/my-plugin.ts

8 lines
125 B
TypeScript
Raw Normal View History

2022-03-08 18:03:21 +00:00
export default defineNuxtPlugin(() => {
return {
provide: {
myPlugin: () => 'Injected by my-plugin'
}
}
})