Home / Type/ FontProviderInitContext Type — astro Architecture

FontProviderInitContext Type — astro Architecture

Architecture documentation for the FontProviderInitContext type/interface in types.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  0fb14e71_3284_a86b_f8a6_9dd2f3c2d088["FontProviderInitContext"]
  0414cf8f_0404_f03b_316f_0d732aa66968["types.ts"]
  0fb14e71_3284_a86b_f8a6_9dd2f3c2d088 -->|defined in| 0414cf8f_0404_f03b_316f_0d732aa66968
  style 0fb14e71_3284_a86b_f8a6_9dd2f3c2d088 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/assets/fonts/types.ts lines 11–26

export interface FontProviderInitContext {
	/**
	 * Useful for caching.
	 */
	storage: {
		getItem: {
			<T = unknown>(key: string): Promise<T | null>;
			<T = unknown>(key: string, init: () => Awaitable<T>): Promise<T>;
		};
		setItem: (key: string, value: unknown) => Awaitable<void>;
	};
	/**
	 * The project root, useful for resolving local files paths.
	 */
	root: URL;
}

Frequently Asked Questions

What is the FontProviderInitContext type?
FontProviderInitContext is a type/interface in the astro codebase, defined in packages/astro/src/assets/fonts/types.ts.
Where is FontProviderInitContext defined?
FontProviderInitContext is defined in packages/astro/src/assets/fonts/types.ts at line 11.

Analyze Your Own Codebase

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

Try Supermodel Free