getEntryConfigByExtMap() — astro Function Reference
Architecture documentation for the getEntryConfigByExtMap() function in utils.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 862c1541_5871_e6b0_186c_f4f77d75495d["getEntryConfigByExtMap()"] 7a09e708_c090_71c0_8138_7343699b1865["utils.ts"] 862c1541_5871_e6b0_186c_f4f77d75495d -->|defined in| 7a09e708_c090_71c0_8138_7343699b1865 style 862c1541_5871_e6b0_186c_f4f77d75495d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/utils.ts lines 255–265
export function getEntryConfigByExtMap<TEntryType extends ContentEntryType | DataEntryType>(
entryTypes: TEntryType[],
): Map<string, TEntryType> {
const map = new Map<string, TEntryType>();
for (const entryType of entryTypes) {
for (const ext of entryType.extensions) {
map.set(ext, entryType);
}
}
return map;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does getEntryConfigByExtMap() do?
getEntryConfigByExtMap() is a function in the astro codebase, defined in packages/astro/src/content/utils.ts.
Where is getEntryConfigByExtMap() defined?
getEntryConfigByExtMap() is defined in packages/astro/src/content/utils.ts at line 255.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free