annotate() — astro Function Reference
Architecture documentation for the annotate() function in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2e7fb051_23e9_f08d_c196_584783577142["annotate()"] f7d3fd10_bcd7_7c85_17b8_a4feb9026da8["index.ts"] 2e7fb051_23e9_f08d_c196_584783577142 -->|defined in| f7d3fd10_bcd7_7c85_17b8_a4feb9026da8 f72816d7_841e_fbeb_de77_6ad73e837140["listPreferences()"] f72816d7_841e_fbeb_de77_6ad73e837140 -->|calls| 2e7fb051_23e9_f08d_c196_584783577142 style 2e7fb051_23e9_f08d_c196_584783577142 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/cli/preferences/index.ts lines 217–221
function annotate(flat: Record<string, any>, annotation: string) {
return Object.fromEntries(
Object.entries(flat).map(([key, value]) => [key, { annotation, value }]),
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does annotate() do?
annotate() is a function in the astro codebase, defined in packages/astro/src/cli/preferences/index.ts.
Where is annotate() defined?
annotate() is defined in packages/astro/src/cli/preferences/index.ts at line 217.
What calls annotate()?
annotate() 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