Retrieves the application's dependency container from Vue's injection system and returns it as a proxied object.
This is the primary public API for consuming dependencies.
A type extending AppDepsMap representing the container of registered services.
AppDepsMap
A proxied object of the registered dependencies.
Will throw an error if the dependencies have not been registered via registerDeps.
registerDeps
const { userService, authService } = deps<AppDeps>()userService.login() Copy
const { userService, authService } = deps<AppDeps>()userService.login()
Retrieves the application's dependency container from Vue's injection system and returns it as a proxied object.
This is the primary public API for consuming dependencies.