Initial Commit
This commit is contained in:
8
src/composables/useApp.ts
Normal file
8
src/composables/useApp.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { inject } from 'vue'
|
||||
import type { App } from '@/services/app'
|
||||
|
||||
export function useApp(): App {
|
||||
const app = inject<App>('app')
|
||||
if (!app) throw new Error('App not properly initialized')
|
||||
return app
|
||||
}
|
||||
Reference in New Issue
Block a user