prompts-prompt.ts — astro Source File
Architecture documentation for prompts-prompt.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e3cebdbb_c06c_598a_180f_f745b50556dd["prompts-prompt.ts"] f458772b_5926_6ea0_4412_a27162311db0["../definitions.js"] e3cebdbb_c06c_598a_180f_f745b50556dd --> f458772b_5926_6ea0_4412_a27162311db0 340b0f28_45a9_98e5_fc8e_01e5b2ac8446["prompts"] e3cebdbb_c06c_598a_180f_f745b50556dd --> 340b0f28_45a9_98e5_fc8e_01e5b2ac8446 style e3cebdbb_c06c_598a_180f_f745b50556dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import prompts from 'prompts';
import type { Prompt } from '../definitions.js';
export class PromptsPrompt implements Prompt {
readonly #force: boolean;
constructor({ force }: { force: boolean }) {
this.#force = force;
}
async confirm({
message,
defaultValue,
}: {
message: string;
defaultValue?: boolean;
}): Promise<boolean> {
if (this.#force) {
return true;
}
const { value } = await prompts({
type: 'confirm',
name: 'value',
message,
initial: defaultValue,
});
return value;
}
}
Domain
Subdomains
Classes
Dependencies
- ../definitions.js
- prompts
Source
Frequently Asked Questions
What does prompts-prompt.ts do?
prompts-prompt.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What does prompts-prompt.ts depend on?
prompts-prompt.ts imports 2 module(s): ../definitions.js, prompts.
Where is prompts-prompt.ts in the architecture?
prompts-prompt.ts is located at packages/astro/src/cli/info/infra/prompts-prompt.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/astro/src/cli/info/infra).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free