Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

222
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda