Home / Type/ CollectionConfig Type — astro Architecture

CollectionConfig Type — astro Architecture

Architecture documentation for the CollectionConfig type/interface in config.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  912652e5_373e_06c3_0947_e81268c0304a["CollectionConfig"]
  be7d1eab_916b_90f9_3072_d169ed547abf["config.ts"]
  912652e5_373e_06c3_0947_e81268c0304a -->|defined in| be7d1eab_916b_90f9_3072_d169ed547abf
  style 912652e5_373e_06c3_0947_e81268c0304a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/config.ts lines 111–114

export type CollectionConfig<
	S extends BaseSchema,
	TLoader extends LoaderConstraint<{ id: string }> = LoaderConstraint<{ id: string }>,
> = ContentCollectionConfig<S> | DataCollectionConfig<S> | ContentLayerConfig<S, TLoader>;

Frequently Asked Questions

What is the CollectionConfig type?
CollectionConfig is a type/interface in the astro codebase, defined in packages/astro/src/content/config.ts.
Where is CollectionConfig defined?
CollectionConfig is defined in packages/astro/src/content/config.ts at line 111.

Analyze Your Own Codebase

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

Try Supermodel Free