Home / Type/ Storage Type — astro Architecture

Storage Type — astro Architecture

Architecture documentation for the Storage type/interface in definitions.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8235202d_e5bc_c234_69bf_a3f0db4ea139["Storage"]
  acedbcbd_1f43_e7eb_ce1b_cea2d1105273["definitions.ts"]
  8235202d_e5bc_c234_69bf_a3f0db4ea139 -->|defined in| acedbcbd_1f43_e7eb_ce1b_cea2d1105273
  style 8235202d_e5bc_c234_69bf_a3f0db4ea139 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/definitions.ts lines 77–82

export interface Storage {
	getItem: (key: string) => Promise<any | null>;
	getItemRaw: (key: string) => Promise<Buffer | null>;
	setItem: (key: string, value: any) => Promise<void>;
	setItemRaw: (key: string, value: any) => Promise<void>;
}

Frequently Asked Questions

What is the Storage type?
Storage is a type/interface in the astro codebase, defined in packages/astro/src/assets/fonts/definitions.ts.
Where is Storage defined?
Storage is defined in packages/astro/src/assets/fonts/definitions.ts at line 77.

Analyze Your Own Codebase

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

Try Supermodel Free