Google Apps Script – annotations – part 037.

In brief:
JSDoc is a markup language used to annotate JavaScript source code files. Using comments containing JSDoc, programmers can add documentation describing the application programming interface of the code they’re creating. This is then processed, by various tools, to produce documentation in accessible formats like HTML and Rich Text Format. The JSDoc specification is released under CC BY-SA 3.0, while its companion documentation generator and parser library is free software under the Apache License 2.0., see JSDoc
JSDoc style documentations (annotations or comments at top lines of function definitions) can be used with Google Apps Script.
This annotation let you restrict authorization on the current document:

An opposing annotation is this:

You can test the authorization:

… answer:

and you can get the get the AuthorizationInfo:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.