Cocoon - v1.0.0
    Preparing search index...

    Function deps

    • 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.

      Type Parameters

      • T extends AppDepsMap

        A type extending AppDepsMap representing the container of registered services.

      Returns T

      A proxied object of the registered dependencies.

      Will throw an error if the dependencies have not been registered via registerDeps.

      const { userService, authService } = deps<AppDeps>()
      userService.login()