Skip to content

Commit 4e0d43c

Browse files
committed
Add AttributeLike type
1 parent 3656158 commit 4e0d43c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ export namespace AST {
500500
attributes: Attribute[];
501501
}
502502

503-
export type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
503+
export type AttributeLike = Attribute | SpreadAttribute | Directive;
504504

505505
export type Directive =
506506
| AST.AnimateDirective
@@ -536,6 +536,8 @@ export namespace AST {
536536
| AST.SvelteWindow
537537
| AST.SvelteBoundary;
538538

539+
export type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
540+
539541
export type TemplateNode =
540542
| AST.Root
541543
| AST.Text

0 commit comments

Comments
 (0)