Home / Type/ LoaderConstraint Type — astro Architecture

LoaderConstraint Type — astro Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/astro/src/content/config.ts lines 77–83

type LoaderConstraint<TData extends { id: string }> =
	| Loader
	| (() =>
			| Array<TData>
			| Promise<Array<TData>>
			| Record<string, Omit<TData, 'id'> & { id?: string }>
			| Promise<Record<string, Omit<TData, 'id'> & { id?: string }>>);

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free