Home / Function/ preferenceSet() — astro Function Reference

preferenceSet() — astro Function Reference

Architecture documentation for the preferenceSet() function in messages.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  74aaebaa_2a8a_a99e_3d9c_b07706331584["preferenceSet()"]
  a89de736_d85a_fc8a_68a9_5d9ea54128d5["messages.ts"]
  74aaebaa_2a8a_a99e_3d9c_b07706331584 -->|defined in| a89de736_d85a_fc8a_68a9_5d9ea54128d5
  style 74aaebaa_2a8a_a99e_3d9c_b07706331584 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/messages.ts lines 119–121

export function preferenceSet(name: string, value: any) {
	return `${green('◉')} ${name} has been set to ${bgGreen(black(` ${JSON.stringify(value)} `))}\n`;
}

Domain

Subdomains

Frequently Asked Questions

What does preferenceSet() do?
preferenceSet() is a function in the astro codebase, defined in packages/astro/src/core/messages.ts.
Where is preferenceSet() defined?
preferenceSet() is defined in packages/astro/src/core/messages.ts at line 119.

Analyze Your Own Codebase

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

Try Supermodel Free