Home / Type/ ImageFunction Type — astro Architecture

ImageFunction Type — astro Architecture

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/astro/src/content/config.ts lines 28–44

type ImageFunction = () => z.ZodObject<{
	src: zCore.$ZodString;
	width: zCore.$ZodNumber;
	height: zCore.$ZodNumber;
	format: zCore.$ZodUnion<
		[
			zCore.$ZodLiteral<'png'>,
			zCore.$ZodLiteral<'jpg'>,
			zCore.$ZodLiteral<'jpeg'>,
			zCore.$ZodLiteral<'tiff'>,
			zCore.$ZodLiteral<'webp'>,
			zCore.$ZodLiteral<'gif'>,
			zCore.$ZodLiteral<'svg'>,
			zCore.$ZodLiteral<'avif'>,
		]
	>;
}>;

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free