types.ts — astro Source File
Architecture documentation for types.ts, a typescript file in the astro codebase. 11 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f898a077_c422_60c6_8128_2cd592ad264d["types.ts"] a1711a94_f06c_214e_28b9_0d6031277c04["../../actions/runtime/types.js"] f898a077_c422_60c6_8128_2cd592ad264d --> a1711a94_f06c_214e_28b9_0d6031277c04 e9b74c5a_8d34_34a7_e196_5e41b87214aa["../types/astro.js"] f898a077_c422_60c6_8128_2cd592ad264d --> e9b74c5a_8d34_34a7_e196_5e41b87214aa 135a8084_d596_67c2_9209_cca6693604e6["../types/public/common.js"] f898a077_c422_60c6_8128_2cd592ad264d --> 135a8084_d596_67c2_9209_cca6693604e6 c32d12e2_d85e_28c0_eea7_9b29629857e0["../types/public/config.js"] f898a077_c422_60c6_8128_2cd592ad264d --> c32d12e2_d85e_28c0_eea7_9b29629857e0 10d4e39f_edb6_3e34_aa93_ae1211e7da05["../types/public/internal.js"] f898a077_c422_60c6_8128_2cd592ad264d --> 10d4e39f_edb6_3e34_aa93_ae1211e7da05 e099eff3_3f90_76ac_3751_a9ff5a6b8f25["../../core/build/types.js"] f898a077_c422_60c6_8128_2cd592ad264d --> e099eff3_3f90_76ac_3751_a9ff5a6b8f25 d34ed003_355b_637d_1578_cba29babbd4c["../../core/csp/config.js"] f898a077_c422_60c6_8128_2cd592ad264d --> d34ed003_355b_637d_1578_cba29babbd4c d3861967_b647_84d2_ff48_15013353bd56["../core/logger/core.js"] f898a077_c422_60c6_8128_2cd592ad264d --> d3861967_b647_84d2_ff48_15013353bd56 e9dfb380_680c_13fb_c9d4_a88e777254bd["../core/app/common.js"] f898a077_c422_60c6_8128_2cd592ad264d --> e9dfb380_680c_13fb_c9d4_a88e777254bd e6591dc4_f998_7dbc_3c66_06ac5ec7fba0["../../core/session/types.js"] f898a077_c422_60c6_8128_2cd592ad264d --> e6591dc4_f998_7dbc_3c66_06ac5ec7fba0 6e91fe0d_c6ce_0cca_abd3_06b774edbe23["./toolbar.js"] f898a077_c422_60c6_8128_2cd592ad264d --> 6e91fe0d_c6ce_0cca_abd3_06b774edbe23 style f898a077_c422_60c6_8128_2cd592ad264d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { ActionClient } from '../../actions/runtime/types.js';
import type { ComponentInstance, SerializedRouteData } from '../../types/astro.js';
import type { AstroMiddlewareInstance } from '../../types/public/common.js';
import type {
AstroConfig,
CspAlgorithm,
Locales,
RemotePattern,
} from '../../types/public/config.js';
import type {
RouteData,
SSRComponentMetadata,
SSRLoadedRenderer,
SSRResult,
} from '../../types/public/internal.js';
import type { SinglePageBuiltModule } from '../build/types.js';
import type { CspDirective } from '../csp/config.js';
import type { LoggerLevel } from '../logger/core.js';
import type { RoutingStrategies } from './common.js';
import type { BaseSessionConfig, SessionDriverFactory } from '../session/types.js';
import type { DevToolbarPlacement } from '../../types/public/toolbar.js';
type ComponentPath = string;
export type StylesheetAsset =
| { type: 'inline'; content: string }
| { type: 'external'; src: string };
type ScriptAsset =
| { children: string; stage: string }
// Hoisted
| { type: 'inline' | 'external'; value: string };
export interface RouteInfo {
routeData: RouteData;
file: string;
links: string[];
scripts: ScriptAsset[];
styles: StylesheetAsset[];
}
export type SerializedRouteInfo = Omit<RouteInfo, 'routeData'> & {
routeData: SerializedRouteData;
};
type ImportComponentInstance = () => Promise<SinglePageBuiltModule>;
export type ServerIslandMappings = {
serverIslandMap?: Map<string, () => Promise<ComponentInstance>>;
serverIslandNameMap?: Map<string, string>;
};
export type AssetsPrefix =
| string
| ({
fallback: string;
} & Record<string, string>)
| undefined;
export type SSRManifest = {
// ... (142 more lines)
Domain
Subdomains
Functions
Types
Dependencies
- ../../actions/runtime/types.js
- ../../core/build/types.js
- ../../core/csp/config.js
- ../../core/session/types.js
- ../core/app/common.js
- ../core/logger/core.js
- ../types/astro.js
- ../types/public/common.js
- ../types/public/config.js
- ../types/public/internal.js
- ./toolbar.js
Source
Frequently Asked Questions
What does types.ts do?
types.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 types.ts?
types.ts defines 1 function(s): Promise.
What does types.ts depend on?
types.ts imports 11 module(s): ../../actions/runtime/types.js, ../../core/build/types.js, ../../core/csp/config.js, ../../core/session/types.js, ../core/app/common.js, ../core/logger/core.js, ../types/astro.js, ../types/public/common.js, and 3 more.
Where is types.ts in the architecture?
types.ts is located at packages/astro/src/core/app/types.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/core/app).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free