Skip to content

Commit b2ce3fa

Browse files
authored
(fix/ast types) fix: Add missing AttachTag in Tag union type inside the AST namespace from "svelte/compiler" (#15946)
1 parent c365634 commit b2ce3fa

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.changeset/funny-carrots-teach.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: Add missing `AttachTag` in `Tag` union type inside the `AST` namespace from `"svelte/compiler"`

packages/svelte/src/compiler/types/template.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,13 @@ export namespace AST {
547547
| AST.SvelteWindow
548548
| AST.SvelteBoundary;
549549

550-
export type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
550+
export type Tag =
551+
| AST.AttachTag
552+
| AST.ConstTag
553+
| AST.DebugTag
554+
| AST.ExpressionTag
555+
| AST.HtmlTag
556+
| AST.RenderTag;
551557

552558
export type TemplateNode =
553559
| AST.Root

packages/svelte/types/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,7 +1362,13 @@ declare module 'svelte/compiler' {
13621362
| AST.SvelteWindow
13631363
| AST.SvelteBoundary;
13641364

1365-
export type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
1365+
export type Tag =
1366+
| AST.AttachTag
1367+
| AST.ConstTag
1368+
| AST.DebugTag
1369+
| AST.ExpressionTag
1370+
| AST.HtmlTag
1371+
| AST.RenderTag;
13661372

13671373
export type TemplateNode =
13681374
| AST.Root

0 commit comments

Comments
 (0)