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

Add support for override keyword in TS #13110

Closed
wants to merge 3 commits into from

Conversation

existentialism
Copy link
Member

Q                       A
Minor: New Feature? Y
Tests Added + Pass? Y/Y
License MIT

For reference,

TS blog post:
https://devblogs.microsoft.com/typescript/announcing-typescript-4-3-beta/#override-and-the-noimplicitoverride-flag

TS PR: microsoft/TypeScript@6014a3a

@existentialism existentialism added PR: New Feature 🚀 A type of pull request used for our changelog categories area: typescript labels Apr 6, 2021
@babel-bot
Copy link
Collaborator

babel-bot commented Apr 6, 2021

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/45039/

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 6, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 6638c8c:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@nicolo-ribaudo nicolo-ribaudo changed the base branch from main to feat-7.14.0/parser-updates April 6, 2021 14:06
"readonly",
"declare",
"override",
]);

const idx = this.tsTryParseIndexSignature(member);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a new test case?

class C extends class {} {
  override [key: string]: string;
}

TS Nightly will throw

'override' modifier cannot appear on an index signature.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Going to close this in favor of #13097, which handles this case.

@existentialism existentialism mentioned this pull request Apr 6, 2021
9 tasks
@existentialism
Copy link
Member Author

Closing in favor of #13097.

@existentialism existentialism deleted the ts-override branch April 6, 2021 14:29
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Jul 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: typescript outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: generator pkg: parser PR: New Feature 🚀 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants