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

218
Vistas
VSCode intellisense doesn't detect Object type from JSDoc

I'm using JSDoc in my project having both javascript and typescript, and I notice that in my js file if a parameter is defined as Object type then VSCode intellisense shows it as type any.

/**
 * @param {Object} options - 
 */
function testFunc(options) {
  return options;
}

vscode intellisense Object

If I use object then it seems to work fine. vscode intellisense object

From what I've read typescript handbook and jsdoc Object or object shouldn't make any difference, and I'm expecting vscode intellisense to show it properly as object type upon hover.

Furthermore, unlike other types, return type is not inferred automatically and it shows as any type.

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

0

The Object is a typescript thing, when you pass object in lowercases, it considers the class object as existing. When you says the @param can take an Object in javascript, it's like saying it can take anything, because there is no difference. In TYPESCRIPT, the type Object is needed when you only want Objects and not Numbers, Arrays & booleans...

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