Stone.js API
    Preparing search index...
    • Provider decorator to mark a class as a ServiceProvider and automatically bind its services to the container.

      This decorator is useful for marking classes as service providers within the Stone.js framework, allowing them to manage and provide their services to the service container.

      Type Parameters

      Parameters

      • options: ProviderOptions = {}

        The configuration options for the provider.

      Returns ClassDecorator

      A decorator function to set metadata on the target class.

      @Provider({ singleton: true })
      class MyServiceProvider {
      // Service provider logic here.
      }