Skip to content
This repository was archived by the owner on Oct 9, 2020. It is now read-only.

JSDoc Format

Sven Fehler edited this page Apr 8, 2020 · 15 revisions

« Home 🏠

JSLib uses JSDoc to provide documentation directly inside some IDEs.
Here is an example of how it looks in Visual Studio Code:

(Image)


  • Each piece of JSDoc documentation will have a description. It is delimited from other sections by this emoji: 🔹
  • Some of the functions / methods have special quirks to look out for or will be deprecated. This warning section is delimited from other sections with this emoji: ⚠️
  • Deprecated features are also indicated with a @deprecated tag.
  • You will always encounter a @since tag, which indicates with which version the feature was introduced.
  • The @version tag will tell you that something changed in a certain version.
  • If a function / method can throw an error, the @throws tag will tell you when this might happen.
  • Private class methods will start with an underscore, will be tagged with @private and their description will be delimited from other sections with this emoji: ❌. Private methods shouldn't be used, or else something might break.
Clone this wiki locally