userValues() — astro Function Reference
Architecture documentation for the userValues() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b045d455_54ca_d251_cfbc_9130e3a1cb5c["userValues()"] f7d3fd10_bcd7_7c85_17b8_a4feb9026da8["index.ts"] b045d455_54ca_d251_cfbc_9130e3a1cb5c -->|defined in| f7d3fd10_bcd7_7c85_17b8_a4feb9026da8 f72816d7_841e_fbeb_de77_6ad73e837140["listPreferences()"] f72816d7_841e_fbeb_de77_6ad73e837140 -->|calls| b045d455_54ca_d251_cfbc_9130e3a1cb5c style b045d455_54ca_d251_cfbc_9130e3a1cb5c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/preferences/index.ts lines 222–242
function userValues(
flatDefault: Record<string, string | number | boolean>,
flatProject: Record<string, string | number | boolean>,
flatGlobal: Record<string, string | number | boolean>,
) {
const result: AnnotatedValues = {};
for (const key of Object.keys(flatDefault)) {
if (key in flatProject) {
result[key] = {
value: flatProject[key],
annotation: '',
};
if (key in flatGlobal) {
result[key].annotation += ` (also modified globally)`;
}
} else if (key in flatGlobal) {
result[key] = { value: flatGlobal[key], annotation: '(global)' };
}
}
return result;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does userValues() do?
userValues() is a function in the astro codebase, defined in packages/astro/src/cli/preferences/index.ts.
Where is userValues() defined?
userValues() is defined in packages/astro/src/cli/preferences/index.ts at line 222.
What calls userValues()?
userValues() is called by 1 function(s): listPreferences.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free