DataStore Type — astro Architecture
Architecture documentation for the DataStore type/interface in config.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 2032e4b7_5508_ddbe_a43b_8c282093f554["DataStore"] be7d1eab_916b_90f9_3072_d169ed547abf["config.ts"] 2032e4b7_5508_ddbe_a43b_8c282093f554 -->|defined in| be7d1eab_916b_90f9_3072_d169ed547abf style 2032e4b7_5508_ddbe_a43b_8c282093f554 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/config.ts lines 53–62
export interface DataStore {
get: (key: string) => DataEntry;
entries: () => Array<[id: string, DataEntry]>;
set: (key: string, data: Record<string, unknown>, body?: string, filePath?: string) => void;
values: () => Array<DataEntry>;
keys: () => Array<string>;
delete: (key: string) => void;
clear: () => void;
has: (key: string) => boolean;
}
Defined In
Source
Frequently Asked Questions
What is the DataStore type?
DataStore is a type/interface in the astro codebase, defined in packages/astro/src/content/config.ts.
Where is DataStore defined?
DataStore is defined in packages/astro/src/content/config.ts at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free