Skip to content

Adding empty new-line between declarations to prevent the file from looking crammed, and allowing regular comments #398

@ecosta1020

Description

@ecosta1020

Description

Hi,

I'm using this plugin to generate .d.ts files from .ts ones that I manually populate, mostly because I'd like to end up with declaration files that serve as documentation for the whole thing without requiring any special code editor/ide.

So I normally have a block-comment, a declaration following it, and I'd like to have an empty new line between these, so that the resulting file doesn't look crammed. To this regard, I'm hitting the wall on the writeOutput function, maybe there's some inline way of doing it rather than messing with the source.

If possible, I'd also like to use regular block-comments. I'm not a vs-code user myself and have no intention of learning their markup, so it would be great if the plugin wouldn't just ignore the comments I write just because these don't start with /**, and would otherwise like to write these wherever I find convenient other than just as fixed blocks before the declarations themselves.

I'll keep looking at the source code to see if I can get there with minimal or no intervention to it, but would appreciate any comments that would allow me doing this.

Thanks,

Suggested solution

Don't know the source enough yet to comment on that

Alternative

No response

Additional context

No response

Validations

  • Read the FAQ.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions