What is TSDoc? | TSDoc
A proposed standard for "docstrings" for TypeScript. Well, not docstrings in the Lisp/Python sense, but comments that can be used to document an API in place and allow for the generation of documentation from them.
Good little article about the pitfalls of using boolean values as parameters for a function. Not the first time I've seen this sort of thing (I'm sure I read a similar article years before, and a similar thing in a coding book even earlier).
Still good advice.
At least it's a little better in languages with keyword arguments.