Home / Type/ ComponentClientTransformState Type — svelte Architecture

ComponentClientTransformState Type — svelte Architecture

Architecture documentation for the ComponentClientTransformState type/interface in types.d.ts from the svelte codebase.

Entity Profile

Dependency Diagram

graph TD
  caca2c49_20de_5ff1_a278_388397b67138["ComponentClientTransformState"]
  e958f40a_bb26_89ce_018e_c2acc509a051["types.d.ts"]
  caca2c49_20de_5ff1_a278_388397b67138 -->|defined in| e958f40a_bb26_89ce_018e_c2acc509a051
  style caca2c49_20de_5ff1_a278_388397b67138 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/3-transform/client/types.d.ts lines 39–89

export interface ComponentClientTransformState extends ClientTransformState {
	readonly analysis: ComponentAnalysis;
	readonly options: ValidatedCompileOptions;
	readonly hoisted: Array<Statement | ModuleDeclaration>;
	readonly events: Set<string>;
	readonly store_to_invalidate?: string;

	/** Stuff that happens before the render effect(s) */
	readonly init: Statement[];
	/** Stuff that happens inside the render effect */
	readonly update: Statement[];
	/** Stuff that happens after the render effect (control blocks, dynamic elements, bindings, actions, etc) */
	readonly after_update: Statement[];
	/** Transformed `{#snippets }` declarations */
	readonly snippets: Statement[];
	/** Transformed `{@const }` declarations */
	readonly consts: Statement[];
	/** Transformed async `{@const }` declarations (if any) and those coming after them */
	async_consts?: {
		id: Identifier;
		thunks: Expression[];
	};
	/** Transformed `let:` directives */
	readonly let_directives: Statement[];
	/** Memoized expressions */
	readonly memoizer: Memoizer;
	/** The HTML template string */
	readonly template: Template;
	readonly metadata: {
		namespace: Namespace;
		bound_contenteditable: boolean;
	};
	readonly preserve_whitespace: boolean;

	/** The anchor node for the current context */
	readonly node: Identifier;

	/** Imports that should be re-evaluated in legacy mode following a mutation */
	readonly legacy_reactive_imports: Statement[];

	/** The $: calls, which will be ordered in the end */
	readonly legacy_reactive_statements: Map<LabeledStatement, Statement>;

	/** Snippets hoisted to the instance */
	readonly instance_level_snippets: VariableDeclaration[];
	/** Snippets hoisted to the module */
	readonly module_level_snippets: VariableDeclaration[];

	/** True if the current node is a) a component or render tag and b) the sole child of a block  */
	readonly is_standalone: boolean;
}

Frequently Asked Questions

What is the ComponentClientTransformState type?
ComponentClientTransformState is a type/interface in the svelte codebase, defined in packages/svelte/src/compiler/phases/3-transform/client/types.d.ts.
Where is ComponentClientTransformState defined?
ComponentClientTransformState is defined in packages/svelte/src/compiler/phases/3-transform/client/types.d.ts at line 39.

Analyze Your Own Codebase

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

Try Supermodel Free