Function getLinkedObjects

  • Gets the list of decorators linked to a specified decorator.

    Type Parameters

    Parameters

    • a: Decorator

      The reference decorator.

    • list: Type[]

      The list of decorators to filter.

    Returns Type[]

    The list of linked decorators.

    @A()
    @B()
    method() {}
    method(
    @A()
    @B()
    param: string
    ) {}
    @A()
    @B()
    class X {}