question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support TypeScript 3.8

See original GitHub issue

TypeScript 3.8 beta has been released!🎉🎉 We should support some syntax will be add via TS 3.8.

There are some syntaxes that can support by just (waiting and) updating typescript-estree(e.g. Top Level await), but there seems to be some that need to be supported on the Prettier side.(e.g. Type only imports exports)

New syntax:

  • import type, export type
  • ECMAScript Private Fields
  • export * as ns

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:114
  • Comments:15 (9 by maintainers)

github_iconTop GitHub Comments

21reactions
BPScottcommented, Mar 18, 2020

@stnwk looks like we’re getting fairly close to a 2.0 release: https://github.com/prettier/prettier/issues/7778

20reactions
bradzachercommented, Mar 10, 2020

Update on this: We’re currently blocked waiting for ESTree to merge the AST for both export * as ns and private class members. The former is accepted, but not yet merged, and the latter is still under discussion; I probably would expect at least a few weeks for it to progress.

However, I did merge https://github.com/typescript-eslint/typescript-eslint/pull/1697 on the weekend, which adds support for import/export type.

Would it be a good idea for prettier to bump the ts-estree version to v2.23.0 to help users in the interim?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 3.8
TypeScript 3.8 adds a new syntax for type-only imports and exports. ... TypeScript 3.8 brings support for ECMAScript's private fields, part of the...
Read more >
Announcing TypeScript 3.8 - Microsoft Developer Blogs
TypeScript 3.8 brings support for ECMAScript's private fields, part of the stage-3 class fields proposal. This work was started and driven ...
Read more >
Support TypeScript 3.8 · Issue #35204 · angular ... - GitHub
TypeScript 3.8 -rc was released today. It includes plenty of useful new features, like Type-Only Imports and Export, ECMAScript Private ...
Read more >
3.8.3 - typescript - npm
TypeScript is a language for application scale JavaScript development. Latest version: 4.9.4, last published: 16 days ago.
Read more >
Prettier 2.0 Supports Typescript 3.8, Improves CLI - InfoQ
Prettier 2.0 adds support for TypeScript 3.8. The new Prettier also strives to provide better defaults, a better CLI and better heuristics.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found