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 TypeScript 3.7 declare class fields #122

Closed
ntucker opened this issue Nov 6, 2019 · 2 comments
Closed

Support TypeScript 3.7 declare class fields #122

ntucker opened this issue Nov 6, 2019 · 2 comments

Comments

@ntucker
Copy link

ntucker commented Nov 6, 2019

prettier/prettier#6661

Input:

class C extends B {
  declare p: 25
}

Output:

class C extends B {
  p: 25;
}

Expected behavior:

same as the input

@ntucker
Copy link
Author

ntucker commented Nov 6, 2019

Does this not work just because a new version of prettier hasn't been released since that patch landed?

@lydell
Copy link
Member

lydell commented Nov 6, 2019

Yes.

@lydell lydell closed this as completed Nov 6, 2019
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