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

pull/13177/head
Simon H 2 years ago committed by GitHub
parent b5293efc01
commit 86460a07af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -74,6 +74,8 @@ const visitors = {
return context.visit(node.expression);
},
TSTypeAnnotation() {
// This isn't correct, strictly speaking, and could result in invalid ASTs (like an empty statement within function parameters),
// but esrap, our printing tool, just ignores these AST nodes at invalid positions, so it's fine
return b.empty;
},
TSInterfaceDeclaration() {

Loading…
Cancel
Save