attachments-2
Rich Harris 8 months ago
parent 9a1805bda9
commit 1d4cb8eab3

@ -1050,9 +1050,9 @@ declare module 'svelte/compiler' {
expression: SimpleCallExpression | (ChainExpression & { expression: SimpleCallExpression }); expression: SimpleCallExpression | (ChainExpression & { expression: SimpleCallExpression });
} }
/** A `{@attach foo(...)} tag */ /** An `attach(...)` attribute */
export interface AttachTag extends BaseNode { export interface Attachment extends BaseNode {
type: 'AttachTag'; type: 'Attachment';
attachments: Array<Expression | SpreadElement>; attachments: Array<Expression | SpreadElement>;
} }
@ -1138,7 +1138,7 @@ declare module 'svelte/compiler' {
interface BaseElement extends BaseNode { interface BaseElement extends BaseNode {
name: string; name: string;
attributes: Array<Attribute | SpreadAttribute | Directive | AttachTag>; attributes: Array<Attribute | SpreadAttribute | Directive | Attachment>;
fragment: Fragment; fragment: Fragment;
} }
@ -1328,7 +1328,7 @@ declare module 'svelte/compiler' {
| AST.Attribute | AST.Attribute
| AST.SpreadAttribute | AST.SpreadAttribute
| Directive | Directive
| AST.AttachTag | AST.Attachment
| AST.Comment | AST.Comment
| Block; | Block;

Loading…
Cancel
Save