Home / Type/ ContentEntryType Type — astro Architecture

ContentEntryType Type — astro Architecture

Architecture documentation for the ContentEntryType type/interface in content.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  39b60381_9f35_77a5_ab9d_f0f5391b1b4e["ContentEntryType"]
  7547ecbb_58ef_bc2d_b119_f58ad78d86f6["content.ts"]
  39b60381_9f35_77a5_ab9d_f0f5391b1b4e -->|defined in| 7547ecbb_58ef_bc2d_b119_f58ad78d86f6
  style 39b60381_9f35_77a5_ab9d_f0f5391b1b4e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/types/public/content.ts lines 106–129

export interface ContentEntryType {
	extensions: string[];
	getEntryInfo(params: {
		fileUrl: URL;
		contents: string;
	}): GetContentEntryInfoReturnType | Promise<GetContentEntryInfoReturnType>;
	getRenderModule?(
		this: rollup.PluginContext,
		params: {
			contents: string;
			fileUrl: URL;
			viteId: string;
		},
	): rollup.LoadResult | Promise<rollup.LoadResult>;
	contentModuleTypes?: string;
	getRenderFunction?(config: AstroConfig): Promise<ContentEntryRenderFunction>;

	/**
	 * Handle asset propagation for rendered content to avoid bleed.
	 * Ex. MDX content can import styles and scripts, so `handlePropagation` should be true.
	 * @default true
	 */
	handlePropagation?: boolean;
}

Frequently Asked Questions

What is the ContentEntryType type?
ContentEntryType is a type/interface in the astro codebase, defined in packages/astro/src/types/public/content.ts.
Where is ContentEntryType defined?
ContentEntryType is defined in packages/astro/src/types/public/content.ts at line 106.

Analyze Your Own Codebase

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

Try Supermodel Free