Home / File/ config.ts — astro Source File

config.ts — astro Source File

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

File typescript 1 imports

Entity Profile

Dependency Diagram

graph LR
  737da41b_671d_5d73_f12b_9f13f245e4ff["config.ts"]
  199cb0c0_7c92_5375_9195_0f59939b49ed["astro:content"]
  737da41b_671d_5d73_f12b_9f13f245e4ff --> 199cb0c0_7c92_5375_9195_0f59939b49ed
  style 737da41b_671d_5d73_f12b_9f13f245e4ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { defineCollection, z } from 'astro:content';

const blog = defineCollection({
	type: 'content',
	schema: z.object({
		title: z.string(),
	}),
});

const data = defineCollection({
	type: 'data',
	schema: z.object({
		name: z.string(),
	}),
});

export const collections = { blog, data };

Dependencies

  • astro:content

Frequently Asked Questions

What does config.ts do?
config.ts is a source file in the astro codebase, written in typescript.
What does config.ts depend on?
config.ts imports 1 module(s): astro:content.
Where is config.ts in the architecture?
config.ts is located at packages/astro/test/fixtures/legacy-collections-backwards-compat/src/content/config.ts (directory: packages/astro/test/fixtures/legacy-collections-backwards-compat/src/content).

Analyze Your Own Codebase

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

Try Supermodel Free