Writing jsdoc documentation on methods inside a class

后端 未结 2 1765
广开言路
广开言路 2020-12-21 07:43

I am writing some libraries in Google Apps Script and I am trying to document them. I have written some classes in the format below, and the comments of methods inside the c

相关标签:
2条回答
  • 2020-12-21 08:09

    If you are working with TypeScript, we've built a package that aims help on this:

    https://github.com/maelcaldas/clasp-types

    We use it to generate autocomplete for our OO libraries and Client-side API written on Typescript.

    0 讨论(0)
  • 2020-12-21 08:26

    This question may be a duplicate... this answer certainly is.

    The jsdoc variant suported for libraries in Google Apps Script does not support documentation at the level you are looking for, only first-level functions. There is a relevant open bug report on this, but no response from Google.

    You can still write your jsdoc tags, and generate your documentation outside of the Google infrastructure. Take a look at How to preview jsdoc comments in google doc scripts for some pointers on how to preview your jsdoc comments. You could take the output of jsdoc3 and publish it on a site to provide your docs to your community.

    Other relevant / possible duplicate posts:

    • Creating a namespace-like organization in a google apps script library
    • Google Apps Script Auto Generated Library Documentation
    0 讨论(0)
提交回复
热议问题