Finds all decorators that are applied to the same location as a reference decorator.
Decorators are considered "linked" when they are applied to the same class member:
The decorator to find linked decorators for.
The collection of decorators to search through.
Array of decorators that are applied to the same location.
// Method decorators - all linked together@Slash()@Permission()method() {} Copy
// Method decorators - all linked together@Slash()@Permission()method() {}
// Parameter decorators - each parameter position creates separate linksmethod( @Option() @Required() param: string) {} Copy
// Parameter decorators - each parameter position creates separate linksmethod( @Option() @Required() param: string) {}
// Class decorators - linked to the class itself@Discord()@Injectable()class MyBot {} Copy
// Class decorators - linked to the class itself@Discord()@Injectable()class MyBot {}
Finds all decorators that are applied to the same location as a reference decorator.
Decorators are considered "linked" when they are applied to the same class member: