@WithDocs() and DocfyRegistry

Class decorator that marks a controller for companion file discovery, and the metadata marker it leaves behind.

The decorator

Class decorator that marks a controller for companion file discovery. Combine it with @Controller().

ts
@WithDocs()
@Controller('products')
export class ProductsController { ... }

DOCFY_MARKER

It also sets the DOCFY_MARKER metadata on the class, available for external introspection:

ts
import { DOCFY_MARKER } from "nestjs-docfy";

Reflect.getMetadata(DOCFY_MARKER, ProductsController); // true