Home / File/ schema.ts — astro Source File

schema.ts — astro Source File

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

File typescript 1 imports

Entity Profile

Dependency Diagram

graph LR
  b9371573_7cef_8379_32d3_f59991345a05["schema.ts"]
  f8c9251e_f535_6281_2118_9e79a4155212["v4"]
  b9371573_7cef_8379_32d3_f59991345a05 --> f8c9251e_f535_6281_2118_9e79a4155212
  style b9371573_7cef_8379_32d3_f59991345a05 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import * as z from 'zod/v4';

export const rssSchema = z.object({
	title: z.string().optional(),
	description: z.string().optional(),
	pubDate: z
		.union([z.string(), z.number(), z.date()])
		.transform((value) => new Date(value))
		.refine((value) => !isNaN(value.getTime()))
		.optional(),
	customData: z.string().optional(),
	categories: z.array(z.string()).optional(),
	author: z.string().optional(),
	commentsUrl: z.string().optional(),
	source: z.object({ url: z.string().url(), title: z.string() }).optional(),
	enclosure: z
		.object({
			url: z.string(),
			length: z.number().nonnegative().int().finite(),
			type: z.string(),
		})
		.optional(),
	link: z.string().optional(),
	content: z.string().optional(),
});

Dependencies

  • v4

Frequently Asked Questions

What does schema.ts do?
schema.ts is a source file in the astro codebase, written in typescript.
What does schema.ts depend on?
schema.ts imports 1 module(s): v4.
Where is schema.ts in the architecture?
schema.ts is located at packages/astro-rss/src/schema.ts (directory: packages/astro-rss/src).

Analyze Your Own Codebase

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

Try Supermodel Free