Documenting Callback Parameters Using Google Closure Compiler
How can you document names and descriptions of callback parameters using the Google Closure Compiler? After reading this answer on documenting callbacks with JSDoc, I tried using @
Solution 1:
Use the --extra_annotation_name
flag to specify JSDoc tags that the compiler does not recognize. Since the compiler recognizes and uses @typedef
, you would need to utilize either the @callback
or @name
annotations.
Post a Comment for "Documenting Callback Parameters Using Google Closure Compiler"