Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

I can't get the description part in NestJs [SOLVED]

click here to see the screenshot

Hello everyone. In the trainings I watch, this explanation comes out of everyone, but it does not come out to me. I tried all the plugins but couldn’t make it. How can I handle this. Thanks in advance.

Hello everyone. In the trainings I watch, this explanation comes out of everyone, but it does not come out to me. I tried all the plugins but couldn’t make it. How can I handle this. Thanks in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

PS

I use vscode. I’ve tried all the plugins related to NestJs. In all tutorials, this comes out when they move the mouse cursor between the e.g. Controller ( | ).

>Solution :

This is JSDocs and is coming from the node_modules/@nestjs/common/decorators/core/controller.decorator.d.ts

If you Ctrl + Click on @Controller (Go to Definition) you should get:

/**
 * Decorator that marks a class as a Nest controller that can receive inbound
 * requests and produce responses.
 *
 * An HTTP Controller responds to inbound HTTP Requests and produces HTTP Responses.
 * It defines a class that provides the context for one or more related route
 * handlers that correspond to HTTP request methods and associated routes
 * for example `GET /api/profile`, `POST /users/resume`.
 *
 * A Microservice Controller responds to requests as well as events, running over
 * a variety of transports [(read more here)](https://docs.nestjs.com/microservices/basics).
 * It defines a class that provides a context for one or more message or event
 * handlers.
 *
 * @see [Controllers](https://docs.nestjs.com/controllers)
 * @see [Microservices](https://docs.nestjs.com/microservices/basics#request-response)
 *
 * @publicApi
 */
export declare function Controller(): ClassDecorator;

This means that you have @nestjs/common package installed in your local repository.

Ensure you have no conflicting VS Code Extensions/Snippets/Plugins installed.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading