mirror of
https://github.com/rstacruz/cheatsheets.git
synced 2026-04-27 03:00:45 -04:00
Merge pull request #1290 from jemise111/patch-1
Fix JSDoc function param with multiple types
This commit is contained in:
2
jsdoc.md
2
jsdoc.md
@@ -31,7 +31,7 @@ See: <http://usejsdoc.org/index.html>
|
||||
| --- | --- |
|
||||
| `@param {string=} n` | Optional |
|
||||
| `@param {string} [n]` | Optional |
|
||||
| `@param {(string\|number)} n`| Multiple types |
|
||||
| `@param {(string|number)} n` | Multiple types |
|
||||
| `@param {*} n` | Any type |
|
||||
| `@param {...string} n` | Repeatable arguments |
|
||||
| `@param {string} [n="hi"]` | Optional with default |
|
||||
|
||||
Reference in New Issue
Block a user