AstroPreferences Type — astro Architecture
Architecture documentation for the AstroPreferences type/interface in index.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD f8241ac3_19f3_f65c_64cb_a83891738c89["AstroPreferences"] 942f8bed_424f_0805_6c0b_154ed0869816["index.ts"] f8241ac3_19f3_f65c_64cb_a83891738c89 -->|defined in| 942f8bed_424f_0805_6c0b_154ed0869816 style f8241ac3_19f3_f65c_64cb_a83891738c89 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/preferences/index.ts lines 46–59
export interface AstroPreferences {
get<Key extends PreferenceKey>(
key: Key,
opts?: PreferenceOptions,
): Promise<GetDotKey<Preferences, Key>>;
set<Key extends PreferenceKey>(
key: Key,
value: GetDotKey<Preferences, Key>,
opts?: PreferenceOptions,
): Promise<void>;
getAll(): Promise<PublicPreferences>;
list(opts?: PreferenceOptions): Promise<PreferenceList>;
ignoreNextPreferenceReload: boolean;
}
Defined In
Source
Frequently Asked Questions
What is the AstroPreferences type?
AstroPreferences is a type/interface in the astro codebase, defined in packages/astro/src/preferences/index.ts.
Where is AstroPreferences defined?
AstroPreferences is defined in packages/astro/src/preferences/index.ts at line 46.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free