Home / File/ definitions.ts — astro Source File

definitions.ts — astro Source File

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

File typescript CoreAstro RenderingEngine 3 imports 3 functions

Entity Profile

Dependency Diagram

graph LR
  9c9ad005_5047_eed5_c668_f454007551de["definitions.ts"]
  9eb8242b_fdf4_2f0a_cd20_f5365a0c228e["../domain/command.js"]
  9c9ad005_5047_eed5_c668_f454007551de --> 9eb8242b_fdf4_2f0a_cd20_f5365a0c228e
  f7d5a8b1_6d20_6c83_f593_71bffeaeaf3e["../domain/help-payload.js"]
  9c9ad005_5047_eed5_c668_f454007551de --> f7d5a8b1_6d20_6c83_f593_71bffeaeaf3e
  dc804f3e_b1ea_df4a_3cc9_40b536be6a5d["node:child_process"]
  9c9ad005_5047_eed5_c668_f454007551de --> dc804f3e_b1ea_df4a_3cc9_40b536be6a5d
  style 9c9ad005_5047_eed5_c668_f454007551de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { StdioOptions } from 'node:child_process';
import type { AnyCommand } from './domain/command.js';
import type { HelpPayload } from './domain/help-payload.js';

export interface HelpDisplay {
	shouldFire: () => boolean;
	show: (payload: HelpPayload) => void;
}

export interface TextStyler {
	bgWhite: (msg: string) => string;
	black: (msg: string) => string;
	dim: (msg: string) => string;
	green: (msg: string) => string;
	bold: (msg: string) => string;
	bgGreen: (msg: string) => string;
}

export interface AstroVersionProvider {
	readonly version: string;
}

export interface CommandRunner {
	run: <T extends AnyCommand>(
		command: T,
		...args: Parameters<T['run']>
	) => ReturnType<T['run']> | undefined;
}

export interface CommandExecutorOptions {
	cwd?: string;
	env?: Record<string, string | undefined>;
	shell?: boolean;
	input?: string;
	stdio?: StdioOptions;
}

export interface CommandExecutor {
	execute: (
		command: string,
		args?: Array<string>,
		options?: CommandExecutorOptions,
	) => Promise<{ stdout: string }>;
}

export interface OperatingSystemProvider {
	readonly name: NodeJS.Platform;
	readonly displayName: string;
}

Domain

Subdomains

Dependencies

  • ../domain/command.js
  • ../domain/help-payload.js
  • node:child_process

Frequently Asked Questions

What does definitions.ts do?
definitions.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 definitions.ts?
definitions.ts defines 3 function(s): command, msg, payload.
What does definitions.ts depend on?
definitions.ts imports 3 module(s): ../domain/command.js, ../domain/help-payload.js, node:child_process.
Where is definitions.ts in the architecture?
definitions.ts is located at packages/astro/src/cli/definitions.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/cli).

Analyze Your Own Codebase

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

Try Supermodel Free