types.d.ts — svelte Source File
Architecture documentation for types.d.ts, a typescript file in the svelte codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 81013f80_b5c2_1ec2_be08_8c26dac8438e["types.d.ts"] 984fb981_b6f6_b4f9_e92f_deca1946ed7f["constants.js"] 81013f80_b5c2_1ec2_be08_8c26dac8438e --> 984fb981_b6f6_b4f9_e92f_deca1946ed7f bb6e3328_dad8_1aa2_35b7_4745449ef2a0["./reactivity/types.js"] 81013f80_b5c2_1ec2_be08_8c26dac8438e --> bb6e3328_dad8_1aa2_35b7_4745449ef2a0 f5793e80_d164_c844_3a93_786da8210d61["#shared"] 81013f80_b5c2_1ec2_be08_8c26dac8438e --> f5793e80_d164_c844_3a93_786da8210d61 style 81013f80_b5c2_1ec2_be08_8c26dac8438e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { Store } from '#shared';
import { STATE_SYMBOL } from './constants.js';
import type { Effect, Source, Value } from './reactivity/types.js';
declare global {
interface Window {
__svelte?: {
/** hydratables */
h?: Map<string, unknown>;
};
}
}
type EventCallback = (event: Event) => boolean;
export type EventCallbackMap = Record<string, EventCallback | EventCallback[]>;
// For all the core internal objects, we use single-character property strings.
// This not only reduces code-size and parsing, but it also improves the performance
// when the JS VM JITs the code.
export type ComponentContext = {
/** parent */
p: null | ComponentContext;
/** context */
c: null | Map<unknown, unknown>;
/** deferred effects */
e: null | Array<() => void | (() => void)>;
/** True if initialized, i.e. pop() ran */
i: boolean;
/**
* props — needed for legacy mode lifecycle functions, and for `createEventDispatcher`
* @deprecated remove in 6.0
*/
s: Record<string, unknown>;
/**
* exports (and props, if `accessors: true`) — needed for `createEventDispatcher`
* @deprecated remove in 6.0
*/
x: Record<string, any> | null;
/**
* legacy stuff
* @deprecated remove in 6.0
*/
l: null | {
/** local signals (needed for beforeUpdate/afterUpdate) */
s: null | Source[];
/** update_callbacks */
u: null | {
/** afterUpdate callbacks */
a: Array<() => void>;
/** beforeUpdate callbacks */
b: Array<() => void>;
/** onMount callbacks */
m: Array<() => any>;
};
/** `$:` statements */
$: any[];
};
/**
* dev mode only: the component function
// ... (144 more lines)
Domain
Subdomains
Classes
Types
- ActionPayload
- AnimateFn
- Animation
- AnimationConfig
- AnimationManager
- ComponentContext
- ComponentContextLegacy
- DevStackEntry
- Dom
- EachItem
- EachOutroGroup
- EachState
- Equals
- EventCallback
- EventCallbackMap
- ProxyStateObject
- Raf
- SourceLocation
- StoreReferencesContainer
- Task
- TaskCallback
- TaskEntry
- TemplateNode
- TransitionFn
- TransitionManager
- Window
Dependencies
- #shared
- ./reactivity/types.js
- constants.js
Source
Frequently Asked Questions
What does types.d.ts do?
types.d.ts is a source file in the svelte codebase, written in typescript. It belongs to the ClientRuntime domain, DOMOperations subdomain.
What functions are defined in types.d.ts?
types.d.ts defines 7 function(s): AnimationConfig, callback, element, event, now, t, value.
What does types.d.ts depend on?
types.d.ts imports 3 module(s): #shared, ./reactivity/types.js, constants.js.
Where is types.d.ts in the architecture?
types.d.ts is located at packages/svelte/src/internal/client/types.d.ts (domain: ClientRuntime, subdomain: DOMOperations, directory: packages/svelte/src/internal/client).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free