Simple question, how do I document that "Mixed-type"? I know I could just list all possible types like {null|undefined|String|Number|Object}
and end up finding myself missing one and making it overly complex. I tried using the Mixed keyword, but it popups errors in many IDEs such as WebStorm.
相关问题
- Pass code to a method as an argument
- Can I parameterize labels and properties on CREATE
- JasperReports Server parameter dependency
- Questions about Lists and other stuff in Clojure
- How do I document an object with JSDoc?
相关文章
- How can I convert a PHP function's parameter l
- Using UNREFERENCED_PARAMETER macro
- Is there a simple way to pass specific *named* Pow
- How to escape @ sign inside JSDoc comments in NetB
- PowerShell Pass Named parameters to ArgumentList
- [removed] Which parameters are there for the onerr
- Pass multi-word arguments to a bash function
- C++ abstract class parameter error workaround
I found the way to do it:
Use {}
There is an example from http://usejsdoc.org/tags-type.html:
In JSDoc, you can describe values in different ways. For example, using the following tags
@type
,@param
,@return
. You can specify optional values using the "?". Here is an example