@@ -1293,7 +1293,7 @@ module.exports = function convert(config) {
1293
1293
accessibility : nodeUtils . getTSNodeAccessibility ( node ) ,
1294
1294
readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ? true : undefined ,
1295
1295
static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1296
- export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ,
1296
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ? true : undefined ,
1297
1297
parameter : result
1298
1298
} ;
1299
1299
}
@@ -1948,7 +1948,7 @@ module.exports = function convert(config) {
1948
1948
typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1949
1949
readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ? true : undefined ,
1950
1950
static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1951
- export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1951
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ? true : undefined
1952
1952
} ) ;
1953
1953
1954
1954
const accessibility = nodeUtils . getTSNodeAccessibility ( node ) ;
@@ -1966,14 +1966,14 @@ module.exports = function convert(config) {
1966
1966
case SyntaxKind . PropertySignature : {
1967
1967
Object . assign ( result , {
1968
1968
type : AST_NODE_TYPES . TSPropertySignature ,
1969
- optional : nodeUtils . isOptional ( node ) ,
1969
+ optional : nodeUtils . isOptional ( node ) || undefined ,
1970
1970
computed : nodeUtils . isComputedProperty ( node . name ) ,
1971
1971
key : convertChild ( node . name ) ,
1972
- typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1973
- initializer : convertChild ( node . initializer ) ,
1972
+ typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : undefined ,
1973
+ initializer : convertChild ( node . initializer ) || undefined ,
1974
1974
readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ? true : undefined ,
1975
- static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1976
- export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1975
+ static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ? true : undefined ,
1976
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ? true : undefined
1977
1977
} ) ;
1978
1978
1979
1979
const accessibility = nodeUtils . getTSNodeAccessibility ( node ) ;
@@ -1991,7 +1991,7 @@ module.exports = function convert(config) {
1991
1991
typeAnnotation : ( node . type ) ? convertTypeAnnotation ( node . type ) : null ,
1992
1992
readonly : nodeUtils . hasModifier ( SyntaxKind . ReadonlyKeyword , node ) ? true : undefined ,
1993
1993
static : nodeUtils . hasModifier ( SyntaxKind . StaticKeyword , node ) ,
1994
- export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node )
1994
+ export : nodeUtils . hasModifier ( SyntaxKind . ExportKeyword , node ) ? true : undefined
1995
1995
} ) ;
1996
1996
1997
1997
const accessibility = nodeUtils . getTSNodeAccessibility ( node ) ;
0 commit comments