Home / Function/ unionExpectedVals() — astro Function Reference

unionExpectedVals() — astro Function Reference

Architecture documentation for the unionExpectedVals() function in zod-error-map.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  195ae4f8_5ad1_28c2_a579_82ad38b03171["unionExpectedVals()"]
  c4702bad_5cd3_4ff4_dfb3_9107bd3ef578["zod-error-map.ts"]
  195ae4f8_5ad1_28c2_a579_82ad38b03171 -->|defined in| c4702bad_5cd3_4ff4_dfb3_9107bd3ef578
  c4289dde_e80c_3ee3_26bf_34ab19c7c1e0["getTypeOrLiteralMsg()"]
  c4289dde_e80c_3ee3_26bf_34ab19c7c1e0 -->|calls| 195ae4f8_5ad1_28c2_a579_82ad38b03171
  ec2e794d_f0eb_1031_50b3_9bed5804ebc8["stringify()"]
  195ae4f8_5ad1_28c2_a579_82ad38b03171 -->|calls| ec2e794d_f0eb_1031_50b3_9bed5804ebc8
  style 195ae4f8_5ad1_28c2_a579_82ad38b03171 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/errors/zod-error-map.ts lines 123–124

const unionExpectedVals = (expectedVals: Set<unknown>) =>
	[...expectedVals].map((expectedVal) => stringify(expectedVal)).join(' | ');

Domain

Subdomains

Calls

Frequently Asked Questions

What does unionExpectedVals() do?
unionExpectedVals() is a function in the astro codebase, defined in packages/astro/src/core/errors/zod-error-map.ts.
Where is unionExpectedVals() defined?
unionExpectedVals() is defined in packages/astro/src/core/errors/zod-error-map.ts at line 123.
What does unionExpectedVals() call?
unionExpectedVals() calls 1 function(s): stringify.
What calls unionExpectedVals()?
unionExpectedVals() is called by 1 function(s): getTypeOrLiteralMsg.

Analyze Your Own Codebase

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

Try Supermodel Free