Home / Function/ fromMap() — astro Function Reference

fromMap() — astro Function Reference

Architecture documentation for the fromMap() function in data-store.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  07ad6235_cde0_7a74_fa45_64692b970316["fromMap()"]
  ac7e948d_1024_ae45_2ea1_742b83aa21b5["ImmutableDataStore"]
  07ad6235_cde0_7a74_fa45_64692b970316 -->|defined in| ac7e948d_1024_ae45_2ea1_742b83aa21b5
  6a6d9079_941e_e9bb_9299_6752c713dce4["fromModule()"]
  6a6d9079_941e_e9bb_9299_6752c713dce4 -->|calls| 07ad6235_cde0_7a74_fa45_64692b970316
  style 07ad6235_cde0_7a74_fa45_64692b970316 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/data-store.ts lines 103–107

	static async fromMap(data: Map<string, Map<string, any>>) {
		const store = new ImmutableDataStore();
		store._collections = data;
		return store;
	}

Subdomains

Called By

Frequently Asked Questions

What does fromMap() do?
fromMap() is a function in the astro codebase, defined in packages/astro/src/content/data-store.ts.
Where is fromMap() defined?
fromMap() is defined in packages/astro/src/content/data-store.ts at line 103.
What calls fromMap()?
fromMap() is called by 1 function(s): fromModule.

Analyze Your Own Codebase

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

Try Supermodel Free