File tree Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Expand file tree Collapse file tree 2 files changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -400,16 +400,36 @@ Doclet.prototype.postTypedef = function() {
400
400
this . type = { names : [ 'TSInterface' ] } ;
401
401
}
402
402
this . properties = this . properties || [ ] ;
403
- interfaceInfo . body . forEach ( function ( child , i ) {
403
+ var childs = interfaceInfo . body ;
404
+ var length = childs . length ;
405
+
406
+ for ( var i = 0 , j = 0 ; j < length ; ++ i ) {
404
407
var prevProperty = self . properties [ i ] || { } ;
408
+ var child ;
409
+
410
+ if ( ( prevProperty . name || '' ) . indexOf ( '.' ) > 0 ) {
411
+ child = {
412
+ key : {
413
+ string : ''
414
+ } ,
415
+ optional : false ,
416
+ type : '' ,
417
+ typeAnnotation : {
418
+ string : ''
419
+ }
420
+ } ;
421
+ } else {
422
+ child = childs [ j ] ;
423
+ ++ j ;
424
+ }
405
425
406
426
self . properties [ i ] = ( {
407
427
name : prevProperty . name || child . key . string ,
408
428
optional : prevProperty . optional || child . optional ,
409
429
type : prevProperty . type || { names : [ TypeScriptParser . getTypeId ( child . type || child . typeAnnotation . string , self . filename ) ] } ,
410
430
description : prevProperty . description || ''
411
431
} ) ;
412
- } ) ;
432
+ }
413
433
414
434
return ;
415
435
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @daybrush/jsdoc" ,
3
- "version" : " 0.3.5 " ,
3
+ "version" : " 0.3.6 " ,
4
4
"description" : " An API documentation generator for JavaScript and Typescript." ,
5
5
"keywords" : [
6
6
" documentation" ,
You can’t perform that action at this time.
0 commit comments