Home / Type/ CollectionConfig Type — astro Architecture

CollectionConfig Type — astro Architecture

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

Entity Profile

Dependency Diagram

graph TD
  502d3fe3_c0a5_e0b1_c2d8_17051f028f9e["CollectionConfig"]
  ea4d1e16_3d0b_5a14_84c7_af64d3dde1b2["frontmatter.ts"]
  502d3fe3_c0a5_e0b1_c2d8_17051f028f9e -->|defined in| ea4d1e16_3d0b_5a14_84c7_af64d3dde1b2
  style 502d3fe3_c0a5_e0b1_c2d8_17051f028f9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/language-tools/ts-plugin/src/frontmatter.ts lines 17–26

export type CollectionConfig = {
	folder: string;
	config: {
		collections: {
			hasSchema: boolean;
			name: string;
		}[];
		entries: Record<string, string>;
	};
};

Frequently Asked Questions

What is the CollectionConfig type?
CollectionConfig is a type/interface in the astro codebase, defined in packages/language-tools/ts-plugin/src/frontmatter.ts.
Where is CollectionConfig defined?
CollectionConfig is defined in packages/language-tools/ts-plugin/src/frontmatter.ts at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free