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

223
Views
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 answers
Answer question

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 Report
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!