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

258
Views
How can I use JSDoc to document class methods inherited from an external package?

I am working on a library. This library contains several classes that extend a parent class from another package.

To make it easy for my users, I would like the documentation of my library to include the methods that are inherited from the external package.

Is there a way to do that? I haven't found one so far.

I tried copying the jsdoc from the external class (which I'm also the author of) into my new library but it does not work since the method isn't defined in the library.

I could do the following but it seems silly to add code in my library only for the sake of documentation:

  /**
   * This is a method that's actually inherited from the parent class. 
   * I'm simply copying the jsdoc over into my own lib.
   */
  doThis() {
    super.doThis()
  };

Is there a way to inject documentation coming from somewhere else? Other ideas?

Cheers!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

well, it seems that if I simply add the source file of the external class (which contains jsodc) to the files to parse, my problem is solved. Yeah!

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!