defaults.ts — astro Source File
Architecture documentation for defaults.ts, a typescript file in the astro codebase.
Entity Profile
Relationship Graph
Source Code
export const DEFAULT_PREFERENCES = {
devToolbar: {
/** Specifies whether the user has the Dev Overlay enabled */
enabled: true,
},
checkUpdates: {
/** Specifies whether the user has the update check enabled */
enabled: true,
},
// Temporary variables that shouldn't be exposed to the users in the CLI, but are still useful to store in preferences
_variables: {
/** Time since last update check */
lastUpdateCheck: 0,
},
};
export type Preferences = typeof DEFAULT_PREFERENCES;
export type PublicPreferences = Omit<Preferences, '_variables'>;
Source
Frequently Asked Questions
What does defaults.ts do?
defaults.ts is a source file in the astro codebase, written in typescript.
Where is defaults.ts in the architecture?
defaults.ts is located at packages/astro/src/preferences/defaults.ts (directory: packages/astro/src/preferences).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free