Home / File/ index.ts — astro Source File

index.ts — astro Source File

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

File typescript IntegrationAdapters SsrAdapters 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  ec752265_f337_a0fa_2d8d_4402f16ebba2["index.ts"]
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  ec752265_f337_a0fa_2d8d_4402f16ebba2 --> f16d8c76_2866_6150_bd14_0347b59abfe9
  9c1de7d3_51b7_1d6b_0c14_e323d0cbd358["astro.config.mjs"]
  9c1de7d3_51b7_1d6b_0c14_e323d0cbd358 --> ec752265_f337_a0fa_2d8d_4402f16ebba2
  style ec752265_f337_a0fa_2d8d_4402f16ebba2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { AstroIntegration, AstroRenderer } from 'astro';

const getRenderer = (): AstroRenderer => ({
    name: 'custom-renderer',
    clientEntrypoint: '@custom-renderer/client',
    serverEntrypoint: '@custom-renderer/server',
})

export { getRenderer as getContainerRenderer };

export default function (): AstroIntegration {
	return {
		name: 'custom-renderer',
		hooks: {
			'astro:config:setup': ({ addRenderer }) => {
				addRenderer(getRenderer());
			},
		},
	};
}

Subdomains

Functions

Dependencies

  • astro

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 IntegrationAdapters domain, SsrAdapters subdomain.
What functions are defined in index.ts?
index.ts defines 1 function(s): getRenderer.
What does index.ts depend on?
index.ts imports 1 module(s): astro.
What files import index.ts?
index.ts is imported by 1 file(s): astro.config.mjs.
Where is index.ts in the architecture?
index.ts is located at packages/astro/test/fixtures/custom-renderer/src/custom-renderer/index.ts (domain: IntegrationAdapters, subdomain: SsrAdapters, directory: packages/astro/test/fixtures/custom-renderer/src/custom-renderer).

Analyze Your Own Codebase

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

Try Supermodel Free