Home / Type/ ContentCtx Type — astro Architecture

ContentCtx Type — astro Architecture

Architecture documentation for the ContentCtx type/interface in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  acfb3fd4_74d7_8b4e_092c_a44fadfb6dc7["ContentCtx"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  acfb3fd4_74d7_8b4e_092c_a44fadfb6dc7 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  style acfb3fd4_74d7_8b4e_092c_a44fadfb6dc7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 660–665

type ContentCtx =
	| { status: 'init' }
	| { status: 'loading' }
	| { status: 'does-not-exist' }
	| { status: 'loaded'; config: ContentConfig }
	| { status: 'error'; error: Error };

Frequently Asked Questions

What is the ContentCtx type?
ContentCtx is a type/interface in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is ContentCtx defined?
ContentCtx is defined in packages/astro/src/content/utils.ts at line 660.

Analyze Your Own Codebase

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

Try Supermodel Free