index.d.ts — svelte Source File
Architecture documentation for index.d.ts, a typescript file in the svelte codebase. 7 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 6bd9d090_a582_e05c_669e_d53d4e7245f2["index.d.ts"] 6bc9684c_1a71_1bdf_8ee4_8d5d204604b3["magic-string"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 6bc9684c_1a71_1bdf_8ee4_8d5d204604b3 4291260f_9c68_db0f_e313_37187427eeb3["estree"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 4291260f_9c68_db0f_e313_37187427eeb3 5415ae33_acc7_39bf_2a56_bf3800623713["locate-character"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 5415ae33_acc7_39bf_2a56_bf3800623713 3e77edba_57e8_d5f4_66c6_80c999e42f8a["ts"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 3e77edba_57e8_d5f4_66c6_80c999e42f8a 4ead6623_c53e_ab40_5690_64903d5addf1["svelte"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 4ead6623_c53e_ab40_5690_64903d5addf1 412c33d6_a077_92ea_58ca_0a6996cb1922["reactivity"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 412c33d6_a077_92ea_58ca_0a6996cb1922 0089bc1e_86a8_7436_5025_0d4d65a18542["legacy"] 6bd9d090_a582_e05c_669e_d53d4e7245f2 --> 0089bc1e_86a8_7436_5025_0d4d65a18542 style 6bd9d090_a582_e05c_669e_d53d4e7245f2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
/// <reference types="esrap" />
declare module 'svelte' {
/**
* @deprecated In Svelte 4, components are classes. In Svelte 5, they are functions.
* Use `mount` instead to instantiate components.
* See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes)
* for more info.
*/
export interface ComponentConstructorOptions<
Props extends Record<string, any> = Record<string, any>
> {
target: Element | Document | ShadowRoot;
anchor?: Element;
props?: Props;
context?: Map<any, any>;
hydrate?: boolean;
intro?: boolean;
recover?: boolean;
sync?: boolean;
idPrefix?: string;
$$inline?: boolean;
}
/**
* Utility type for ensuring backwards compatibility on a type level that if there's a default slot, add 'children' to the props
*/
type Properties<Props, Slots> = Props &
(Slots extends { default: any }
? // This is unfortunate because it means "accepts no props" turns into "accepts any prop"
// but the alternative is non-fixable type errors because of the way TypeScript index
// signatures work (they will always take precedence and make an impossible-to-satisfy children type).
Props extends Record<string, never>
? any
: { children?: any }
: {});
/**
* This was the base class for Svelte components in Svelte 4. Svelte 5+ components
* are completely different under the hood. For typing, use `Component` instead.
* To instantiate components, use `mount` instead.
* See [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
*/
export class SvelteComponent<
Props extends Record<string, any> = Record<string, any>,
Events extends Record<string, any> = any,
Slots extends Record<string, any> = any
> {
/** The custom element version of the component. Only present if compiled with the `customElement` compiler option */
static element?: typeof HTMLElement;
[prop: string]: any;
/**
* @deprecated This constructor only exists when using the `asClassComponent` compatibility helper, which
* is a stop-gap solution. Migrate towards using `mount` instead. See
* [migration guide](https://svelte.dev/docs/svelte/v5-migration-guide#Components-are-no-longer-classes) for more info.
*/
constructor(options: ComponentConstructorOptions<Properties<Props, Slots>>);
/**
* For type checking capabilities only.
// ... (3668 more lines)
Domain
Subdomains
Classes
Types
- Action
- ActionReturn
- AnimateDirective
- AnimationConfig
- Atrule
- AttachTag
- Attachment
- Attribute
- AttributeLike
- AttributeSelector
- AwaitBlock
- BaseAttribute
- BaseElement
- BaseNode
- BindDirective
- Block
- BlurParams
- Brand
- Branded
- ClassDirective
- ClassSelector
- Cloneable
- Combinator
- Comment
- Comp
- CompileError
- CompileOptions
- CompileOptions_1
- CompileResult
- ComplexSelector
- Component
- ComponentConstructorOptions
- ComponentEvents
- ComponentInternals
- ComponentProps
- ComponentType
- ConstTag
- CrossfadeParams
- Csp
- CssHashGetter
- DebugTag
- Declaration
- Directive
- DispatchOptions
- DrawParams
- EachBlock
- EasingFunction
- ElementLike
- EventDispatcher
- ExpressionTag
- FadeParams
- FlipParams
- FlyParams
- Fork
- Fragment
- Getters
- HtmlTag
- ICompileDiagnostic
- IdSelector
- IfBlock
- JSComment
- KeyBlock
- LegacyComponentType
- LetDirective
- MarkupPreprocessor
- MarkupPreprocessor_1
- ModuleCompileOptions
- MountOptions
- Namespace
- NestingSelector
- Node
- NonReactive
- NotFunction
- Nth
- OnDirective
- Options
- Percentage
- Preprocessor
- PreprocessorGroup
- PreprocessorGroup_1
- Preprocessor_1
- Primitive
- Processed
- Processed_1
- Properties
- PseudoClassSelector
- PseudoElementSelector
- Readable
- RegularElement
- RelativeSelector
- RenderOutput
- RenderTag
- Root
- Rule
- ScaleParams
- Script
- SelectorList
- Sha256Source
- SimpleSelector
- SlideParams
- SlotElement
- Snapshot
- Snippet
- SnippetBlock
- SpreadAttribute
- Spring
- SpringOpts
- SpringUpdateOpts
- StartStopNotifier
- Stores
- StoresValues
- StyleDirective
- StyleSheet
- Subscriber
- SvelteBody
- SvelteBoundary
- SvelteComponent
- SvelteDocument
- SvelteElement
- SvelteFragment
- SvelteHead
- SvelteNode
- SvelteOptions
- SvelteOptionsRaw
- SveltePreprocessor
- SveltePreprocessor_1
- SvelteSelf
- SvelteWindow
- SyncRenderOutput
- Tag
- TemplateNode
- Text
- TitleElement
- TransitionConfig
- TransitionDirective
- Tweened
- TweenedOptions
- TypeSelector
- TypedArray
- Unsubscriber
- Updater
- UseDirective
- Warning
- Warning_1
- Writable
Dependencies
- estree
- legacy
- locate-character
- magic-string
- reactivity
- svelte
- ts
Source
Frequently Asked Questions
What does index.d.ts do?
index.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the BuildSystem domain, QualityControl subdomain.
What functions are defined in index.d.ts?
index.d.ts defines 13 function(s): T, a, args, e, fn, from, len, options, parameter, set, and 3 more.
What does index.d.ts depend on?
index.d.ts imports 7 module(s): estree, legacy, locate-character, magic-string, reactivity, svelte, ts.
Where is index.d.ts in the architecture?
index.d.ts is located at packages/svelte/types/index.d.ts (domain: BuildSystem, subdomain: QualityControl, directory: packages/svelte/types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free