We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42d5d7d commit fe71ebcCopy full SHA for fe71ebc
1 file changed
apps/api-extractor/src/generators/DtsRollupGenerator.ts
@@ -449,8 +449,10 @@ export class DtsRollupGenerator {
449
}
450
451
452
- if (/^\s*$/.test(modification.suffix) && /^\s*$/.test(modification.prefix)) {
453
- modification.suffix = modification.prefix = '';
+ if (modification.suffix.trim().length === 0 && modification.prefix.trim().length === 0) {
+ // In case of blank prefix and suffix, remove indentation to avoid blank lines in place of removed members
454
+ modification.suffix = '';
455
+ modification.prefix = '';
456
457
458
trimmed = true;
0 commit comments