Clone / download this repository, or just download the
FetchAPI.js file. Then tell your editor / IDE to treat the
FetchAPI.js file as a library.
A detailed instruction can be found in this post.
It might be a good idea to replace usages of
string to avoid confusion.
The only way in JSDoc to document read-only members that I know of is the
@const tag, but that feels off to do that in many cases.
The Body Mixin
Well, the Body mixin is not exposed. I have no clue how to document something like this in JSDoc.
Do this work automatically
- To document what Promises will resolve to, I use this notation:
- To document what Iterators will iterate, I use this notation:
The WebStorm IDE works well with those, but I don't know if others will understand it correctly.