Home / File/ content.d.ts — astro Source File

content.d.ts — astro Source File

Architecture documentation for content.d.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

File typescript CoreAstro RenderingEngine 1 imports 2 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  8fd73f0f_ee86_63f3_531c_849fec1ac37b["content.d.ts"]
  0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84["zod"]
  8fd73f0f_ee86_63f3_531c_849fec1ac37b --> 0f49b6f2_8b44_baf8_7812_a8fa2dd0ca84
  style 8fd73f0f_ee86_63f3_531c_849fec1ac37b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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;
}

Domain

Subdomains

Functions

Classes

Dependencies

  • zod

Frequently Asked Questions

What does content.d.ts do?
content.d.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in content.d.ts?
content.d.ts defines 2 function(s): args, entry.
What does content.d.ts depend on?
content.d.ts imports 1 module(s): zod.
Where is content.d.ts in the architecture?
content.d.ts is located at packages/astro/types/content.d.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/types).

Analyze Your Own Codebase

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

Try Supermodel Free