Skip to content

Commit 9982d1b

Browse files
committed
fix: removing typescript abstract methods
1 parent 02788f8 commit 9982d1b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.changeset/short-fireants-talk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte': patch
3+
---
4+
5+
fix: removing typescript abstract methods

packages/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ const visitors = {
118118
delete node.implements;
119119
return context.next();
120120
},
121+
MethodDefinition(node, context) {
122+
if (node.abstract) {
123+
return b.empty;
124+
}
125+
return context.next();
126+
},
121127
VariableDeclaration(node, context) {
122128
if (node.declare) {
123129
return b.empty;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy