Home / Function/ href() — svelte Function Reference

href() — svelte Function Reference

Architecture documentation for the href() function in actions.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  3abca3a3_dc56_471f_a93a_52ea4f4fd88b["href()"]
  c7d7d650_9ce5_9889_19ef_b2856517b577["actions.ts"]
  3abca3a3_dc56_471f_a93a_52ea4f4fd88b -->|defined in| c7d7d650_9ce5_9889_19ef_b2856517b577
  style 3abca3a3_dc56_471f_a93a_52ea4f4fd88b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/tests/types/actions.ts lines 5–9

const href: Action<HTMLAnchorElement> = (node) => {
	node.href = '';
	// @ts-expect-error
	node.href = 1;
};

Domain

Subdomains

Frequently Asked Questions

What does href() do?
href() is a function in the svelte codebase, defined in packages/svelte/tests/types/actions.ts.
Where is href() defined?
href() is defined in packages/svelte/tests/types/actions.ts at line 5.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free