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

66
Vistas
JSDoc - Document Object of type

In JSDoc, how does one document an Object of certain defined type?

For example, if I have a function which receives a HTMLImageElement object, how should I document it in the parameters?

Would it be like just like this @param {HTMLImageElement} - An image or @param {Object<HTMLImageElement>} ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The first option you mentioned is correct:

@param {HTMLImageElement} An image

All class/object types can be used as a type in the type parameter. You don't need to do anything fancy with them.

And since all class instances are objects, you know it is also an object.

about 4 years ago · Juan Pablo Isaza Denunciar
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