Home / File/ index.ts — astro Source File

index.ts — astro Source File

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

File typescript CoreAstro RenderingEngine 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  64e947e6_87c6_0626_f830_de8835192b1a["index.ts"]
  c32d12e2_d85e_28c0_eea7_9b29629857e0["../types/public/config.js"]
  64e947e6_87c6_0626_f830_de8835192b1a --> c32d12e2_d85e_28c0_eea7_9b29629857e0
  118daa85_78ea_83c0_84f6_bcd529c428e0["./sync/index.js"]
  64e947e6_87c6_0626_f830_de8835192b1a --> 118daa85_78ea_83c0_84f6_bcd529c428e0
  style 64e947e6_87c6_0626_f830_de8835192b1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

// This is the main entrypoint when importing the `astro` package.

import type { AstroInlineConfig } from '../types/public/config.js';
import { default as _sync } from './sync/index.js';

export { default as build } from './build/index.js';
export { default as dev } from './dev/index.js';
export { default as preview } from './preview/index.js';

/**
 * Generates TypeScript types for all Astro modules. This sets up a `src/env.d.ts` file for type inferencing,
 * and defines the `astro:content` module for the Content Collections API.
 *
 * @experimental The JavaScript API is experimental
 */
// Wrap `_sync` to prevent exposing internal options
export const sync = (inlineConfig: AstroInlineConfig) => _sync(inlineConfig);

Domain

Subdomains

Functions

Dependencies

  • ../types/public/config.js
  • ./sync/index.js

Frequently Asked Questions

What does index.ts do?
index.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 index.ts?
index.ts defines 1 function(s): sync.
What does index.ts depend on?
index.ts imports 2 module(s): ../types/public/config.js, ./sync/index.js.
Where is index.ts in the architecture?
index.ts is located at packages/astro/src/core/index.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/core).

Analyze Your Own Codebase

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

Try Supermodel Free