Home / File/ integrations.ts — astro Source File

integrations.ts — astro Source File

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

File typescript CoreAstro RenderingEngine 12 imports 7 functions

Entity Profile

Dependency Diagram

graph LR
  5a61a076_c3db_01bc_0201_03ec73ca05bb["integrations.ts"]
  a4f2698c_5256_262a_ba7c_f72b51878d10["../core/app/types.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> a4f2698c_5256_262a_ba7c_f72b51878d10
  e099eff3_3f90_76ac_3751_a9ff5a6b8f25["../../core/build/types.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> e099eff3_3f90_76ac_3751_a9ff5a6b8f25
  d3861967_b647_84d2_ff48_15013353bd56["../core/logger/core.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> d3861967_b647_84d2_ff48_15013353bd56
  577a88ec_9794_724f_6dca_ea21d7e8dc40["../../integrations/features-validation.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 577a88ec_9794_724f_6dca_ea21d7e8dc40
  ec3f57f9_1334_b72b_abeb_11b186147ebe["../integrations/hooks.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> ec3f57f9_1334_b72b_abeb_11b186147ebe
  aa7ecf5d_ecc0_6ab7_c8df_09c64e200c44["../../type-utils.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> aa7ecf5d_ecc0_6ab7_c8df_09c64e200c44
  c32d12e2_d85e_28c0_eea7_9b29629857e0["../types/public/config.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> c32d12e2_d85e_28c0_eea7_9b29629857e0
  7f07e12d_4af0_1918_f31b_31410b415993["../types/public/content.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 7f07e12d_4af0_1918_f31b_31410b415993
  10d4e39f_edb6_3e34_aa93_ae1211e7da05["../types/public/internal.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 10d4e39f_edb6_3e34_aa93_ae1211e7da05
  6e91fe0d_c6ce_0cca_abd3_06b774edbe23["./toolbar.js"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 6e91fe0d_c6ce_0cca_abd3_06b774edbe23
  155bd823_ceeb_ca16_2d83_f5ec72c22720["node:net"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 155bd823_ceeb_ca16_2d83_f5ec72c22720
  263e522e_1aa5_ebc3_e7d6_45ebc51671f7["vite"]
  5a61a076_c3db_01bc_0201_03ec73ca05bb --> 263e522e_1aa5_ebc3_e7d6_45ebc51671f7
  style 5a61a076_c3db_01bc_0201_03ec73ca05bb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { AddressInfo } from 'node:net';
import type { ViteDevServer, InlineConfig as ViteInlineConfig } from 'vite';
import type { SerializedSSRManifest } from '../../core/app/types.js';
import type { PageBuildData } from '../../core/build/types.js';
import type { AstroIntegrationLogger } from '../../core/logger/core.js';
import type { AdapterFeatureStability } from '../../integrations/features-validation.js';
import type { getToolbarServerCommunicationHelpers } from '../../integrations/hooks.js';
import type { DeepPartial } from '../../type-utils.js';
import type { AstroConfig } from './config.js';
import type { RefreshContentOptions } from './content.js';
import type { InternalInjectedRoute, RouteData } from './internal.js';
import type { DevToolbarAppEntry } from './toolbar.js';

export interface RouteOptions {
	/**
	 * The path to this route relative to the project root. The slash is normalized as forward slash
	 * across all OS.
	 * @example "src/pages/blog/[...slug].astro"
	 */
	readonly component: string;
	/**
	 * Whether this route should be prerendered. If the route has an explicit `prerender` export,
	 * the value will be passed here. Otherwise, it's undefined and will fallback to a prerender
	 * default depending on the `output` option.
	 */
	prerender?: boolean;
}

/* Client Directives */
type DirectiveHydrate = () => Promise<void>;
type DirectiveLoad = () => Promise<DirectiveHydrate>;

type DirectiveOptions = {
	/**
	 * The component displayName
	 */
	name: string;
	/**
	 * The attribute value provided
	 */
	value: string;
};

export type ClientDirective = (
	load: DirectiveLoad,
	options: DirectiveOptions,
	el: HTMLElement,
) => void;

export interface ClientDirectiveConfig {
	name: string;
	entrypoint: string | URL;
}

export interface AstroRenderer {
	/** Name of the renderer. */
	name: string;
	/** Import entrypoint for the client/browser renderer. */
	clientEntrypoint?: string | URL;
	/** Import entrypoint for the server/build/ssr renderer. */
// ... (329 more lines)

Domain

Subdomains

Dependencies

  • ../../core/build/types.js
  • ../../integrations/features-validation.js
  • ../../type-utils.js
  • ../core/app/types.js
  • ../core/logger/core.js
  • ../integrations/hooks.js
  • ../types/public/config.js
  • ../types/public/content.js
  • ../types/public/internal.js
  • ./toolbar.js
  • node:net
  • vite

Frequently Asked Questions

What does integrations.ts do?
integrations.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 integrations.ts?
integrations.ts defines 7 function(s): Promise, Record, args, data, load, options, request.
What does integrations.ts depend on?
integrations.ts imports 12 module(s): ../../core/build/types.js, ../../integrations/features-validation.js, ../../type-utils.js, ../core/app/types.js, ../core/logger/core.js, ../integrations/hooks.js, ../types/public/config.js, ../types/public/content.js, and 4 more.
Where is integrations.ts in the architecture?
integrations.ts is located at packages/astro/src/types/public/integrations.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/types/public).

Analyze Your Own Codebase

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

Try Supermodel Free