public.d.ts — svelte Source File
Architecture documentation for public.d.ts, a typescript file in the svelte codebase.
Entity Profile
Relationship Graph
Source Code
/**
* An [attachment](https://svelte.dev/docs/svelte/@attach) is a function that runs when an element is mounted
* to the DOM, and optionally returns a function that is called when the element is later removed.
*
* It can be attached to an element with an `{@attach ...}` tag, or by spreading an object containing
* a property created with [`createAttachmentKey`](https://svelte.dev/docs/svelte/svelte-attachments#createAttachmentKey).
*/
export interface Attachment<T extends EventTarget = Element> {
(element: T): void | (() => void);
}
export * from './index.js';
Types
Source
Frequently Asked Questions
What does public.d.ts do?
public.d.ts is a source file in the svelte codebase, written in typescript.
Where is public.d.ts in the architecture?
public.d.ts is located at packages/svelte/src/attachments/public.d.ts (directory: packages/svelte/src/attachments).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free