Is there a specified way to declare a method or a function to return void in JsDoc? Currently I am in the belief that void is the default return value, and other return values must be specifically provided: Answer I don’t believe you have to choose from a set of types in JsDoc… you can use any type name you
Tag: jsdoc
Best way to document anonymous objects and functions with jsdoc
Edit: This is technically a 2 part question. I’ve chosen the best answer that covers the question in general and linked to the answer that handles the specific question. What is the best way to document anonymous objects and functions with jsdoc? Neither the PageRequest object or the callback exist in code. They will be provided to getPage() at runtime.