CollectionLoader Type — astro Architecture
Architecture documentation for the CollectionLoader type/interface in content-layer.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c4e75dd4_4307_57eb_fde0_2663239a1862["CollectionLoader"] 3460caba_c22e_57de_8fed_316b77465ef7["content-layer.ts"] c4e75dd4_4307_57eb_fde0_2663239a1862 -->|defined in| 3460caba_c22e_57de_8fed_316b77465ef7 style c4e75dd4_4307_57eb_fde0_2663239a1862 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/content-layer.ts lines 42–46
type CollectionLoader<TData> = () =>
| Array<TData>
| Promise<Array<TData>>
| Record<string, Record<string, unknown>>
| Promise<Record<string, Record<string, unknown>>>;
Defined In
Source
Frequently Asked Questions
What is the CollectionLoader type?
CollectionLoader is a type/interface in the astro codebase, defined in packages/astro/src/content/content-layer.ts.
Where is CollectionLoader defined?
CollectionLoader is defined in packages/astro/src/content/content-layer.ts at line 42.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free