File tree Expand file tree Collapse file tree 4 files changed +10
-14
lines changed
Expand file tree Collapse file tree 4 files changed +10
-14
lines changed Original file line number Diff line number Diff line change @@ -426,17 +426,13 @@ function getRelated() {
426426 *
427427 * @memberOf Entry
428428 * @returns {array } Returns the entry's `returns` data.
429- *
430- * @todo fix issue with union returns not unioning
431429 */
432430function getReturns ( ) {
433431 var tag = getTag ( this , 'returns' ) ;
434- /*
435432 var unionReturn = ( tag && 'type' in tag ) ? getParamType ( tag . type ) : undefined ;
436- */
437433 var
438434 desc = _ . toString ( _ . get ( tag , 'description' ) ) ,
439- type = _ . toString ( _ . get ( tag , 'type.name' ) ) || '*' ;
435+ type = _ . toString ( _ . get ( tag , 'type.name' ) ) || unionReturn || '*' ;
440436
441437 return tag ? [ type , desc ] : [ ] ;
442438}
Original file line number Diff line number Diff line change 31311 . ` option ` * (string[ ;] ; )|string)* : the option
3232
3333#### Returns
34- * (&# 42 ; )* : the result
34+ * (string|string &# 91 ;&# 93 ; )* : the result
3535
3636---
3737
48481 . ` option ` * (||)* :
4949
5050#### Returns
51- * (&# 42 ; )* : reverse string
51+ * (Reverse|string )* : reverse string
5252
5353---
5454
82821 . ` option ` * (string[ ;] ; )|string)* : the option
8383
8484#### Returns
85- * (&# 42 ; )* : the result
85+ * (string &# 91 ;&# 93 ; )|string )* : the result
8686
8787---
8888
Original file line number Diff line number Diff line change 31311 . ` option ` * (string[ ;] ; )|string)* : the option
3232
3333#### Returns
34- * (&# 42 ; )* : the result
34+ * (string|string &# 91 ;&# 93 ; )* : the result
3535
3636---
3737
48481 . ` option ` * (||)* :
4949
5050#### Returns
51- * (&# 42 ; )* : reverse string
51+ * (Reverse|string )* : reverse string
5252
5353---
5454
82821 . ` option ` * (string[ ;] ; )|string)* : the option
8383
8484#### Returns
85- * (&# 42 ; )* : the result
85+ * (string &# 91 ;&# 93 ; )|string )* : the result
8686
8787---
8888
Original file line number Diff line number Diff line change 31311 . ` option ` * (string[ ;] ; )|string)* : the option
3232
3333#### Returns
34- * (&# 42 ; )* : the result
34+ * (string|string &# 91 ;&# 93 ; )* : the result
3535
3636---
3737
48481 . ` option ` * (||)* :
4949
5050#### Returns
51- * (&# 42 ; )* : reverse string
51+ * (Reverse|string )* : reverse string
5252
5353---
5454
82821 . ` option ` * (string[ ;] ; )|string)* : the option
8383
8484#### Returns
85- * (&# 42 ; )* : the result
85+ * (string &# 91 ;&# 93 ; )|string )* : the result
8686
8787---
8888
You can’t perform that action at this time.
0 commit comments