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 keyof operator keyword #90

Closed
kunli2 opened this issue Nov 28, 2023 · 1 comment · Fixed by #91
Closed

Support keyof operator keyword #90

kunli2 opened this issue Nov 28, 2023 · 1 comment · Fixed by #91
Assignees
Labels
bug Something isn't working

Comments

@kunli2
Copy link
Contributor

kunli2 commented Nov 28, 2023

An example test

    @Test
    void keyofKeyword() {
        rewriteRun(
          javaScript(
            """
              type Person = { name: string , age: number };
              type KeysOfPerson = keyof Person;
              """
          )
        );
    }
@kunli2 kunli2 added the bug Something isn't working label Nov 28, 2023
@knutwannheden
Copy link
Contributor

Documentation link: https://www.typescriptlang.org/docs/handbook/2/keyof-types.html

Possibly we can also add links to the corresponding lines of the "official" parser.

@traceyyoshima traceyyoshima self-assigned this Nov 28, 2023
@traceyyoshima traceyyoshima moved this to In Progress in OpenRewrite Nov 28, 2023
@traceyyoshima traceyyoshima moved this from In Progress to Ready to Review in OpenRewrite Nov 28, 2023
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants