Home / Function/ getStringifiedMap() — astro Function Reference

getStringifiedMap() — astro Function Reference

Architecture documentation for the getStringifiedMap() function in content-entry-type.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73["getStringifiedMap()"]
  b46411b3_6535_0116_92ac_cd60b744df11["content-entry-type.ts"]
  e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73 -->|defined in| b46411b3_6535_0116_92ac_cd60b744df11
  8da81c7c_4056_9a1c_b1a1_0ac3cbab6581["getContentEntryType()"]
  8da81c7c_4056_9a1c_b1a1_0ac3cbab6581 -->|calls| e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73
  e91e788b_1ac3_31f5_76f8_110b047e5249["toImportName()"]
  e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73 -->|calls| e91e788b_1ac3_31f5_76f8_110b047e5249
  style e0e4cd3c_ee40_dc1a_eea2_14ca10d30f73 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/markdoc/src/content-entry-type.ts lines 393–405

function getStringifiedMap(
	componentConfigMap: Record<string, ComponentConfig>,
	componentNamePrefix: string,
) {
	let stringifiedComponentMap = '{';
	for (const key in componentConfigMap) {
		stringifiedComponentMap += `${JSON.stringify(key)}: ${
			componentNamePrefix + toImportName(key)
		},\n`;
	}
	stringifiedComponentMap += '}';
	return stringifiedComponentMap;
}

Domain

Subdomains

Frequently Asked Questions

What does getStringifiedMap() do?
getStringifiedMap() is a function in the astro codebase, defined in packages/integrations/markdoc/src/content-entry-type.ts.
Where is getStringifiedMap() defined?
getStringifiedMap() is defined in packages/integrations/markdoc/src/content-entry-type.ts at line 393.
What does getStringifiedMap() call?
getStringifiedMap() calls 1 function(s): toImportName.
What calls getStringifiedMap()?
getStringifiedMap() is called by 1 function(s): getContentEntryType.

Analyze Your Own Codebase

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

Try Supermodel Free