Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
ecosta1020 opened this issue Nov 23, 2024 · 0 comments

Comments

@ecosta1020
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant