on() — svelte Function Reference
Architecture documentation for the on() function in index.d.ts from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 4f087fc5_73b8_bcc3_865b_416cad0d026d["on()"] fd34ba06_dadc_6535_8ef9_0e8b796a3e9f["on"] 4f087fc5_73b8_bcc3_865b_416cad0d026d -->|defined in| fd34ba06_dadc_6535_8ef9_0e8b796a3e9f style 4f087fc5_73b8_bcc3_865b_416cad0d026d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/types/index.d.ts lines 2816–2821
export function on<Type extends keyof WindowEventMap>(
window: Window,
type: Type,
handler: (this: Window, event: WindowEventMap[Type] & { currentTarget: Window }) => any,
options?: AddEventListenerOptions | undefined
): () => void;
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does on() do?
on() is a function in the svelte codebase, defined in packages/svelte/types/index.d.ts.
Where is on() defined?
on() is defined in packages/svelte/types/index.d.ts at line 2816.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free