Skip to content

Commit

Permalink
fix: removing typescript abstract methods
Browse files Browse the repository at this point in the history
  • Loading branch information
caiquetorres committed Feb 11, 2025
1 parent 02788f8 commit 9982d1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/short-fireants-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'svelte': patch
---

fix: removing typescript abstract methods
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ const visitors = {
delete node.implements;
return context.next();
},
MethodDefinition(node, context) {
if (node.abstract) {
return b.empty;
}
return context.next();
},
VariableDeclaration(node, context) {
if (node.declare) {
return b.empty;
Expand Down

0 comments on commit 9982d1b

Please sign in to comment.