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 5.0 #14240

Closed
sosukesuzuki opened this issue Jan 27, 2023 · 5 comments · Fixed by #14512
Closed

Support TypeScript 5.0 #14240

sosukesuzuki opened this issue Jan 27, 2023 · 5 comments · Fixed by #14512
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:enhancement A potential new feature to be added, or an improvement to how we print something

Comments

@sosukesuzuki
Copy link
Member

sosukesuzuki commented Jan 27, 2023

We should support new syntax will be landed in TS 5.0.

parsers status:

Decorators

class Person {
    name: string;
    constructor(name: string) {
        this.name = name;
    }

    @loggedMethod
    greet() {
        console.log(`Hello, my name is ${this.name}.`);
    }
}

const p = new Person("Ray");
p.greet();

const Type Parameters

type HasNames = { names: readonly string[] };
function getNamesExactly<const T extends HasNames>(arg: T): T["names"] {
    return arg.names;
}

export type *

export type * as vehicles from "./spaceship";
@sosukesuzuki sosukesuzuki added type:enhancement A potential new feature to be added, or an improvement to how we print something lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) labels Jan 27, 2023
@sosukesuzuki sosukesuzuki pinned this issue Jan 27, 2023
@fisker
Copy link
Member

fisker commented Jan 29, 2023

Build script update #13819

@nandorojo
Copy link

Sorry to ping this issue, but to confirm, is there an experimental version published anywhere that has TypeScript 5.0 support yet? Couldn't find it in the releases, so figured I would ask just in case.

Judging by the checklist at the top: Babel support has been merged, and TypeScript ESlint support is released, albeit somewhat experimental. The TS ESLint version has been working for me, though.

Thanks!

@sosukesuzuki
Copy link
Member Author

Sorry to ping this issue, but to confirm, is there an experimental version published anywhere that has TypeScript 5.0 support yet?

No, we haven't published the release that supports TypeScript 5.0. We will let you know in this issue when we release it, so please wait.

@sssyed
Copy link

sssyed commented Mar 17, 2023

hey folks sorry to bump this again, since #13819 has been merged and TS 5.0 is out will we see a release soon?

@fisker
Copy link
Member

fisker commented Mar 20, 2023

https://github.com/prettier/prettier/releases/tag/2.8.5

@fisker fisker unpinned this issue Mar 20, 2023
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:enhancement A potential new feature to be added, or an improvement to how we print something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants