Commit 3912a6b 1 parent e071b1d commit 3912a6b Copy full SHA for 3912a6b
File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export class PropertiesParser {
48
48
} else {
49
49
return obj [ CO . name ] ;
50
50
}
51
+ } else {
52
+ return obj [ CO . name ] ;
51
53
}
52
54
}
53
55
@@ -76,14 +78,21 @@ export class PropertiesParser {
76
78
}
77
79
78
80
getTypeReferenceProp ( prop : any ) {
79
- return prop [ CO . type ] [ CO . name ] + '<' + prop [ CO . type ] [ CO . typeArguments ] [ 0 ] [ CO . name ] + '>' ;
81
+ if ( prop [ CO . type ] [ CO . typeArguments ] && prop [ CO . type ] [ CO . typeArguments ] . length !== 0 ) {
82
+ return prop [ CO . type ] [ CO . name ] + '<' + prop [ CO . type ] [ CO . typeArguments ] [ 0 ] [ CO . name ] + '>' ;
83
+ } else {
84
+ return prop [ CO . type ] [ CO . name ] ;
85
+ }
80
86
}
81
87
82
88
getTypeOther ( prop : any ) {
83
89
if ( prop [ CO . comment ] [ CO . tags ] && prop [ CO . comment ] [ CO . tags ] . length !== 0 ) {
84
90
return prop [ CO . comment ] [ CO . tags ] [ 0 ] [ CO . text ] . replace ( / [ \n { } ] + / g, '' ) ;
85
- } else {
91
+ } else if ( prop [ CO . setSignature ] && prop [ CO . setSignature ] . length !== 0 &&
92
+ prop [ CO . setSignature ] [ 0 ] [ CO . parameters ] && prop [ CO . setSignature ] [ 0 ] [ CO . parameters ] . length !== 0 ) {
86
93
return prop [ CO . setSignature ] [ 0 ] [ CO . parameters ] [ 0 ] [ CO . type ] [ CO . name ] ;
94
+ } else if ( prop [ CO . getSignature ] && prop [ CO . getSignature ] . length !== 0 ) {
95
+ return prop [ CO . getSignature ] [ 0 ] [ CO . type ] [ CO . name ] ;
87
96
}
88
97
}
89
98
Original file line number Diff line number Diff line change @@ -22,4 +22,5 @@ export const CO = {
22
22
arguments : 'arguments' ,
23
23
bindingPropertyName : 'bindingPropertyName' ,
24
24
typeArguments : 'typeArguments' ,
25
+ getSignature : 'getSignature' ,
25
26
} ;
You can’t perform that action at this time.
0 commit comments