@@ -98,6 +98,10 @@ export class MarkdownDocumenter {
9898 case ApiItemKind . Interface :
9999 output . appendNode ( new DocHeading ( { configuration, title : `${ scopedName } interface` } ) ) ;
100100 break ;
101+ case ApiItemKind . Constructor :
102+ case ApiItemKind . ConstructSignature :
103+ output . appendNode ( new DocHeading ( { configuration, title : scopedName } ) ) ;
104+ break ;
101105 case ApiItemKind . Method :
102106 case ApiItemKind . MethodSignature :
103107 output . appendNode ( new DocHeading ( { configuration, title : `${ scopedName } method` } ) ) ;
@@ -182,6 +186,8 @@ export class MarkdownDocumenter {
182186 case ApiItemKind . Interface :
183187 this . _writeInterfaceTables ( output , apiItem as ApiInterface ) ;
184188 break ;
189+ case ApiItemKind . Constructor :
190+ case ApiItemKind . ConstructSignature :
185191 case ApiItemKind . Method :
186192 case ApiItemKind . MethodSignature :
187193 case ApiItemKind . Function :
@@ -376,6 +382,10 @@ export class MarkdownDocumenter {
376382 headerTitles : [ 'Property' , 'Modifiers' , 'Type' , 'Description' ]
377383 } ) ;
378384
385+ const constructorsTable : DocTable = new DocTable ( { configuration,
386+ headerTitles : [ 'Constructor' , 'Modifiers' , 'Description' ]
387+ } ) ;
388+
379389 const propertiesTable : DocTable = new DocTable ( { configuration,
380390 headerTitles : [ 'Property' , 'Modifiers' , 'Type' , 'Description' ]
381391 } ) ;
@@ -387,6 +397,18 @@ export class MarkdownDocumenter {
387397 for ( const apiMember of apiClass . members ) {
388398
389399 switch ( apiMember . kind ) {
400+ case ApiItemKind . Constructor : {
401+ constructorsTable . addRow (
402+ new DocTableRow ( { configuration } , [
403+ this . _createTitleCell ( apiMember ) ,
404+ this . _createModifiersCell ( apiMember ) ,
405+ this . _createDescriptionCell ( apiMember )
406+ ] )
407+ ) ;
408+
409+ this . _writeApiItemPage ( apiMember ) ;
410+ break ;
411+ }
390412 case ApiItemKind . Method : {
391413 methodsTable . addRow (
392414 new DocTableRow ( { configuration } , [
@@ -433,6 +455,11 @@ export class MarkdownDocumenter {
433455 output . appendNode ( eventsTable ) ;
434456 }
435457
458+ if ( constructorsTable . rows . length > 0 ) {
459+ output . appendNode ( new DocHeading ( { configuration : this . _tsdocConfiguration , title : 'Constructors' } ) ) ;
460+ output . appendNode ( constructorsTable ) ;
461+ }
462+
436463 if ( propertiesTable . rows . length > 0 ) {
437464 output . appendNode ( new DocHeading ( { configuration : this . _tsdocConfiguration , title : 'Properties' } ) ) ;
438465 output . appendNode ( propertiesTable ) ;
@@ -502,6 +529,7 @@ export class MarkdownDocumenter {
502529 for ( const apiMember of apiClass . members ) {
503530
504531 switch ( apiMember . kind ) {
532+ case ApiItemKind . ConstructSignature :
505533 case ApiItemKind . MethodSignature : {
506534 methodsTable . addRow (
507535 new DocTableRow ( { configuration } , [
0 commit comments