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

Support d.ts files #186

Closed
ry opened this issue Feb 13, 2020 · 2 comments
Closed

Support d.ts files #186

ry opened this issue Feb 13, 2020 · 2 comments

Comments

@ry
Copy link

ry commented Feb 13, 2020

denoland/deno#3988 (comment)

cc @bartlomieju

@dsherret
Copy link
Member

Heh, this was an oversight on my part. Should be an easy fix.

@dsherret
Copy link
Member

dsherret commented Feb 14, 2020

@bartlomieju was there a specific scenario you found that wasn't working? I think dprint should work with .d.ts files (I added a test that uses a .d.ts extension).

That said, I found two small issues when I was looking into this and they are published in 0.5.1.


Forgot to add tests for this one:

global {
}

// incorrectly formatted as...
global global {
}

This one only occurred when there was a declare keyword:

declare namespace Test {
}

// incorrectly formatted as
declare module Test {
}

Again, both fixed in 0.5.1

Edit: Going to close this for now.

@dsherret dsherret transferred this issue from dprint/dprint Jul 11, 2021
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

2 participants