@@ -1728,7 +1728,11 @@ module.exports = function convert(config) {
1728
1728
computed : nodeUtils . isComputedProperty ( node . name ) ,
1729
1729
key : convertChild ( node . name ) ,
1730
1730
params : node . parameters . map ( parameter => convertChild ( parameter ) ) ,
1731
- typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null
1731
+ typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1732
+ accessibility : nodeUtils . getTSNodeAccessibility ( node ) ,
1733
+ readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ,
1734
+ static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1735
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1732
1736
} ) ;
1733
1737
1734
1738
if ( node . typeParameters ) {
@@ -1744,7 +1748,12 @@ module.exports = function convert(config) {
1744
1748
optional : nodeUtils . isOptional ( node ) ,
1745
1749
computed : nodeUtils . isComputedProperty ( node . name ) ,
1746
1750
key : convertChild ( node . name ) ,
1747
- typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null
1751
+ typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1752
+ initializer : convertChild ( node . initializer ) ,
1753
+ accessibility : nodeUtils . getTSNodeAccessibility ( node ) ,
1754
+ readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ,
1755
+ static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1756
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1748
1757
} ) ;
1749
1758
1750
1759
break ;
@@ -1754,7 +1763,11 @@ module.exports = function convert(config) {
1754
1763
Object . assign ( result , {
1755
1764
type : AST_NODE_TYPES . TSIndexSignature ,
1756
1765
index : convertChild ( node . parameters [ 0 ] ) ,
1757
- typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null
1766
+ typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1767
+ accessibility : nodeUtils . getTSNodeAccessibility ( node ) ,
1768
+ readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ,
1769
+ static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1770
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1758
1771
} ) ;
1759
1772
1760
1773
break ;
0 commit comments