Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

157
Vistas
JSDOC @property before class versus @type at declaration for class properties

In my class I want to document its properties so that they're noted when hovering over the class itself, but I also want my documentation to show up when hovering the properties themselves:

/**
 * Example class
 * @property {string} foo - Example property
 */
class bar {
    constructor(){
       /**
        * Example property
        * @type {string}
        * @public
        */
       this.foo = 'foo';
    }
} 

I need to have it similar to this to get the desired result of having the info about this.foo show up when hovering both the class/constructor and this.foo itself.

This feels redundant and I feel like there must be a more concise way to get the desired result.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda