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

119
Views
Properly create dictionary of objects/classes while maintaining their documentation

If I have a class listView that has documentation and I put it in a dictionary:

/** Handles list models */
class listView{}

const views = { list: listView }

Then the property/key list doesn't have any documentation or intellisense. Is there a way for me to have it show parentView's documentation without copying it?

Edit: One way that can work is to define the class within the object:

const views = {
    /** Handles list models */
    list: class{ }
}

But if a better solution exists, please let me know.

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