Skip to content

Commit

Permalink
[ts] Remove override modifier (#13381)
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed May 27, 2021
1 parent 1341e56 commit c6bebfe
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-plugin-transform-typescript/src/index.ts
Expand Up @@ -119,11 +119,13 @@ export default declare((api, opts) => {
if (node.typeAnnotation) node.typeAnnotation = null;
if (node.definite) node.definite = null;
if (node.declare) node.declare = null;
if (node.override) node.override = null;
},
method({ node }) {
if (node.accessibility) node.accessibility = null;
if (node.abstract) node.abstract = null;
if (node.optional) node.optional = null;
if (node.override) node.override = null;

// Rest handled by Function visitor
},
Expand Down
@@ -0,0 +1,4 @@
class Foo extends Bar {
override foo() {}
override bar: string = "bar";
}
@@ -0,0 +1,5 @@
class Foo extends Bar {
foo() {}

bar = "bar";
}

0 comments on commit c6bebfe

Please sign in to comment.