Home / Function/ formatAnnotated() — astro Function Reference

formatAnnotated() — astro Function Reference

Architecture documentation for the formatAnnotated() function in index.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  2293e4b2_08b0_47f9_c2cb_b32f623b2878["formatAnnotated()"]
  f7d3fd10_bcd7_7c85_17b8_a4feb9026da8["index.ts"]
  2293e4b2_08b0_47f9_c2cb_b32f623b2878 -->|defined in| f7d3fd10_bcd7_7c85_17b8_a4feb9026da8
  b7a701fd_4441_5459_1118_014908ce259d["formatTable()"]
  b7a701fd_4441_5459_1118_014908ce259d -->|calls| 2293e4b2_08b0_47f9_c2cb_b32f623b2878
  style 2293e4b2_08b0_47f9_c2cb_b32f623b2878 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/cli/preferences/index.ts lines 328–335

function formatAnnotated(
	mv: AnnotatedValue,
	style: (value: string) => string = (v) => v.toString(),
) {
	return mv.annotation
		? `${style(String(mv.value))} ${dim(mv.annotation)}`
		: style(String(mv.value));
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does formatAnnotated() do?
formatAnnotated() is a function in the astro codebase, defined in packages/astro/src/cli/preferences/index.ts.
Where is formatAnnotated() defined?
formatAnnotated() is defined in packages/astro/src/cli/preferences/index.ts at line 328.
What calls formatAnnotated()?
formatAnnotated() is called by 1 function(s): formatTable.

Analyze Your Own Codebase

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

Try Supermodel Free