Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
JavaScript: la clase JSDoc es6 muestra el constructor como `nuevo módulo: MyClass`

Tengo el módulo actual TextExtractor.js , que exporta una clase TextExtractor :

 /** * @file Extract RegEx matches from texts. * @author Victorio Molina <victoriomolinabermejo@gmail.com> * @license MIT * @category Lib * @subcategory Text Extractor * @module TextExtractor */ /** * Class for converting any text into Regex matches * and React props. * * @class */ export default class TextExtractor { /** * @param {string} text - The text to manipulate. * @param {DetectionOption[]} [detectionOptions=[]] - Detection options. */ constructor(text, detectionOptions = []) { /** * Text that is being treated. * * @private * @type {string} */ this.#text = text; /** * @private * @type {DetectionOption[]} * @default [] */ this.#detectionOptions = detectionOptions; } ... }

Por alguna razón, cuando genero automáticamente la documentación usando JSDoc, muestra lo siguiente:

CLASE

módulo:TextExtractor

módulo:TextExtractor(texto, opciones de detección opt)

Clase para convertir cualquier texto en coincidencias Regex y accesorios React.

CONSTRUCTOR

nuevo módulo: TextExtractor (texto, opciones de detección opt)

¿Qué etiqueta JSDoc debo usar para evitar mostrar el nombre de la clase como "módulo: TextExtractor"?

¿Es el comportamiento esperado?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!