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
TypeScript 4.3 #10642
Comments
private functions: https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-beta/#ecmascript-private-class-elements although, it might be already supported? |
The private class element syntax (which is actually a JavaScript language feature, and not a TypeScript language feature) seems fully supported by Prettier (atleast as of 2.2.1). However at the time of this writing, Prettier chokes on the items listed by OP. |
Can we also have a better formatting of using export type EntityPrimaryColumnValueMap<
Entity extends AnyEntity,
Deepness extends string = "."
> = FlatTypeHint<
{
[P in keyof (Entity["columns"] &
Entity["embeds"]) as EntityPrimaryColumnValueMapAsCondition<
Entity,
P
> extends true
? P
: never]: P extends keyof Entity["columns"]
? ColumnCompileType<Entity, P>
: P extends keyof Entity["embeds"]
? EntityPrimaryColumnValueMap<Entity["embeds"][P], `${Deepness}.`>
: never
}
> |
This comment has been minimized.
This comment has been minimized.
@pleerock please avoid do it here, your problems is not relevant to this |
Babel 7.14.0 has been released. We can support TS 4.3 via |
If TypeScript 4.3 is released, many users would like Prettier to support TS 4.3. Keep this issue pinned until the next release so they don't create extra issues. |
TypeScript 4.3 has been released https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/ |
What's the plan to release this feature? I guess many folks are blocked with Typescript 4.3 update because of this.. 🙏 |
@kirillgroshkov We haven't decided on the specifics, but I think it needs to be done as soon as possible. Also you can use the workaround with {
"overrides": [
{
"files": "*.ts",
"options": {
"parser": "babel-ts"
}
}
]
} |
Hi, I'm having trouble overriding an abstract property: abstract class Foo extends Bar {
abstract override name: string;
} This gets "prettied" to abstract class Foo extends Bar {
override abstract name: string;
} I'm using |
Just curious, do we have some ETA on when this might get released? |
We've released 2.3.1 that supports TS 4.3. |
Typescript 4.3 has the new 'override' keyword. This requires an update. For more detail see: prettier/prettier#10642 Change-Id: Id663a700bf3cb68be49c03dafb1938d84372dd6e
TypeScript 4.3 has been announced. See https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-beta/ .
Status
typescript
: typescript-eslint 4.25.0 supports TS 4.3 features. Also we merged the PR support it(Support TypeScript 4.3 #10945), but not released yet.babel-ts
: We've shipped TS 4.3 support in Prettier 2.3New Syntax
get
/set
for type membersoverride
modifier in classesstatic
indexed signaturesAnything else?
The text was updated successfully, but these errors were encountered: