Home / Type/ CollectionEntryMap Type — astro Architecture

CollectionEntryMap Type — astro Architecture

Architecture documentation for the CollectionEntryMap type/interface in types-generator.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8a7e2645_f21b_a938_502c_de023c2c2eb3["CollectionEntryMap"]
  eca81928_a18b_c02e_8e5a_0440befa1a98["types-generator.ts"]
  8a7e2645_f21b_a938_502c_de023c2c2eb3 -->|defined in| eca81928_a18b_c02e_8e5a_0440befa1a98
  style 8a7e2645_f21b_a938_502c_de023c2c2eb3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/types-generator.ts lines 50–68

type CollectionEntryMap = {
	[collection: string]:
		| {
				type: 'unknown';
				entries: Record<string, never>;
		  }
		| {
				type: 'content';
				entries: Record<string, ContentEntryMetadata>;
		  }
		| {
				type: 'data' | typeof CONTENT_LAYER_TYPE;
				entries: Record<string, DataEntryMetadata>;
		  }
		| {
				type: typeof LIVE_CONTENT_TYPE;
				entries: Record<string, never>;
		  };
};

Frequently Asked Questions

What is the CollectionEntryMap type?
CollectionEntryMap is a type/interface in the astro codebase, defined in packages/astro/src/content/types-generator.ts.
Where is CollectionEntryMap defined?
CollectionEntryMap is defined in packages/astro/src/content/types-generator.ts at line 50.

Analyze Your Own Codebase

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

Try Supermodel Free