#StackBounty: #javascript #typescript #ecmascript-6 #nestjs #typescript-decorator In Nest.js, how to get a service instance inside a de…

Bounty: 400

In CustomDecorator, how to access a service instance defined in Nest.js?

export const CustomDecorator = (): MethodDecorator => {
  return (
    target: Object,
    propertyKey: string | symbol,
    descriptor: PropertyDescriptor
    ) => {

    // Here, is possibile to access a Nest.js service (i.e. TestService) instance?

    return descriptor;

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.