Home / Function/ getContentEntryExts() — astro Function Reference

getContentEntryExts() — astro Function Reference

Architecture documentation for the getContentEntryExts() function in utils.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  6d302b91_7577_1260_3810_92b7b21e8427["getContentEntryExts()"]
  7a09e708_c090_71c0_8138_7343699b1865["utils.ts"]
  6d302b91_7577_1260_3810_92b7b21e8427 -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865
  9f7b1f5d_6264_645b_77b9_79aaa945256d["autogenerateCollections()"]
  9f7b1f5d_6264_645b_77b9_79aaa945256d -->|calls| 6d302b91_7577_1260_3810_92b7b21e8427
  style 6d302b91_7577_1260_3810_92b7b21e8427 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/utils.ts lines 247–249

export function getContentEntryExts(settings: Pick<AstroSettings, 'contentEntryTypes'>) {
	return settings.contentEntryTypes.map((t) => t.extensions).flat();
}

Subdomains

Frequently Asked Questions

What does getContentEntryExts() do?
getContentEntryExts() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is getContentEntryExts() defined?
getContentEntryExts() is defined in packages/astro/src/content/utils.ts at line 247.
What calls getContentEntryExts()?
getContentEntryExts() is called by 1 function(s): autogenerateCollections.

Analyze Your Own Codebase

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

Try Supermodel Free