@@ -517,7 +517,7 @@ export function hoistTypeAnnotations (type: model.TypeDefinition, jsDocs: JSDoc[
517
517
const tags = parseJsDocTags ( jsDocs )
518
518
if ( jsDocs . length === 1 ) {
519
519
const description = jsDocs [ 0 ] . getDescription ( )
520
- if ( description != null ) type . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
520
+ if ( description . length > 0 ) type . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
521
521
}
522
522
523
523
setTags ( jsDocs , type , tags , validTags , ( tags , tag , value ) => {
@@ -544,7 +544,7 @@ function hoistPropertyAnnotations (property: model.Property, jsDocs: JSDoc[]): v
544
544
const tags = parseJsDocTags ( jsDocs )
545
545
if ( jsDocs . length === 1 ) {
546
546
const description = jsDocs [ 0 ] . getDescription ( )
547
- if ( description != null ) property . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
547
+ if ( description . length > 0 ) property . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
548
548
}
549
549
550
550
setTags ( jsDocs , property , tags , validTags , ( tags , tag , value ) => {
@@ -589,7 +589,7 @@ function hoistEnumMemberAnnotations (member: model.EnumMember, jsDocs: JSDoc[]):
589
589
const tags = parseJsDocTags ( jsDocs )
590
590
if ( jsDocs . length === 1 ) {
591
591
const description = jsDocs [ 0 ] . getDescription ( )
592
- if ( description != null ) member . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
592
+ if ( description . length > 0 ) member . description = description . split ( EOL ) . filter ( Boolean ) . join ( EOL )
593
593
}
594
594
595
595
setTags ( jsDocs , member , tags , validTags , ( tags , tag , value ) => {
0 commit comments