Home / Type/ Fragment Type — svelte Architecture

Fragment Type — svelte Architecture

Architecture documentation for the Fragment type/interface in template.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  0e5c71eb_3ff6_1ef3_8c58_e53f57cdd959["Fragment"]
  628b0d7d_f8bd_9570_9133_f9b9af4f58aa["template.d.ts"]
  0e5c71eb_3ff6_1ef3_8c58_e53f57cdd959 -->|defined in| 628b0d7d_f8bd_9570_9133_f9b9af4f58aa
  style 0e5c71eb_3ff6_1ef3_8c58_e53f57cdd959 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/types/template.d.ts lines 37–53

	export interface Fragment {
		type: 'Fragment';
		nodes: Array<Text | Tag | ElementLike | Block | Comment>;
		/** @internal */
		metadata: {
			/**
			 * Fragments declare their own scopes. A transparent fragment is one whose scope
			 * is not represented by a scope in the resulting JavaScript (e.g. an element scope),
			 * and should therefore delegate to parent scopes when generating unique identifiers
			 */
			transparent: boolean;
			/**
			 * Whether or not we need to traverse into the fragment during mount/hydrate
			 */
			dynamic: boolean;
		};
	}

Frequently Asked Questions

What is the Fragment type?
Fragment is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/types/template.d.ts.
Where is Fragment defined?
Fragment is defined in packages/svelte/src/compiler/types/template.d.ts at line 37.

Analyze Your Own Codebase

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

Try Supermodel Free