Skip to content

Commit 999a05a

Browse files
committed
regenerate
1 parent c69c5d7 commit 999a05a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

packages/svelte/src/attachments/public.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/**
2+
* An [attachment](https://svelte.dev/docs/svelte/@attach) is a function that runs when an element is mounted
3+
* to the DOM, and optionally returns a function that is called when the element is later removed.
4+
*
5+
* It can be attached to an element with an `{@attach ...}` tag, or by spreading an object containing
6+
* a property created with [`createAttachmentKey`](https://svelte.dev/docs/svelte/svelte-attachments#createAttachmentKey).
7+
*/
18
export interface Attachment {
29
(element: Element): void | (() => void);
310
}

packages/svelte/types/index.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,13 @@ declare module 'svelte/animate' {
625625
}
626626

627627
declare module 'svelte/attachments' {
628+
/**
629+
* An [attachment](https://svelte.dev/docs/svelte/@attach) is a function that runs when an element is mounted
630+
* to the DOM, and optionally returns a function that is called when the element is later removed.
631+
*
632+
* It can be attached to an element with an `{@attach ...}` tag, or by spreading an object containing
633+
* a property created with [`createAttachmentKey`](https://svelte.dev/docs/svelte/svelte-attachments#createAttachmentKey).
634+
*/
628635
export interface Attachment {
629636
(element: Element): void | (() => void);
630637
}

0 commit comments

Comments
 (0)