Home / Class/ zod Class — astro Architecture

zod Class — astro Architecture

Architecture documentation for the zod class in content.d.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  7dffc80d_08d0_69d9_be90_ab51a1faf271["zod"]
  8fd73f0f_ee86_63f3_531c_849fec1ac37b["content.d.ts"]
  7dffc80d_08d0_69d9_be90_ab51a1faf271 -->|defined in| 8fd73f0f_ee86_63f3_531c_849fec1ac37b

Relationship Graph

Source Code

packages/astro/types/content.d.ts lines 1–50

declare module 'astro:content' {
	import zod from 'astro/zod';
	export type {
		ImageFunction,
		DataEntry,
		DataStore,
		MetaStore,
		BaseSchema,
		SchemaContext,
	} from 'astro/content/config';
	export { defineLiveCollection, defineCollection } from 'astro/content/config';

	// TODO: remove in Astro 7
	/**
	 * @deprecated
	 * `import { z } from 'astro:content'` is deprecated and will be removed
	 * in Astro 7. Use `import { z } from 'astro/zod'` instead.
	 */
	export const z = zod.z;

	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getEntryBySlug: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getDataEntryById: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getCollection: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getEntry: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getEntries: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const reference: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export type CollectionKey = any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	// biome-ignore lint/correctness/noUnusedVariables: stub generic type to match generated type
	export type CollectionEntry<C> = any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export type ContentCollectionKey = any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export type DataCollectionKey = any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export type ContentConfig = any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const render: (entry: any) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getLiveCollection: (...args: any[]) => any;
	/** Run `astro dev` or `astro sync` to generate high fidelity types */
	export const getLiveEntry: (...args: any[]) => any;
}

Frequently Asked Questions

What is the zod class?
zod is a class in the astro codebase, defined in packages/astro/types/content.d.ts.
Where is zod defined?
zod is defined in packages/astro/types/content.d.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free