• A class decorator that makes the class injectable

    Type Parameters

    • T extends Class<object>

      Type of the annotated class

    Parameters

    • container: {} = defaultContainer

      Object that stores injectables

      Returns ClassDecorator<T>

      Remarks

      @Service will specify the class as one that can be injected

      The class is used as the lookup when injecting the service

      Example

      import { Service } from "@fork-git-it/annotatedjs";

      @Service()
      export class ExampleService {
      doSomething() {}
      }

    Generated using TypeDoc