Home / Function/ constructor() — astro Function Reference

constructor() — astro Function Reference

Architecture documentation for the constructor() function in client.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b["constructor()"]
  4504796a_5913_23cb_44e2_1c4f7195959f["ActionInputError"]
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b -->|defined in| 4504796a_5913_23cb_44e2_1c4f7195959f
  16011807_cc3e_5eac_60e4_43f7c3e63fa4["constructor()"]
  16011807_cc3e_5eac_60e4_43f7c3e63fa4 -->|calls| 2b53efcf_51d5_1fb6_63d8_a6dc49d2552b
  16011807_cc3e_5eac_60e4_43f7c3e63fa4["constructor()"]
  2b53efcf_51d5_1fb6_63d8_a6dc49d2552b -->|calls| 16011807_cc3e_5eac_60e4_43f7c3e63fa4
  style 2b53efcf_51d5_1fb6_63d8_a6dc49d2552b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/actions/runtime/client.ts lines 138–152

	constructor(issues: z.$ZodIssue[]) {
		super({
			message: `Failed to validate: ${JSON.stringify(issues, null, 2)}`,
			code: 'BAD_REQUEST',
		});
		this.issues = issues;
		this.fields = {};
		for (const issue of issues) {
			if (issue.path.length > 0) {
				const key = issue.path[0].toString() as keyof typeof this.fields;
				this.fields[key] ??= [];
				this.fields[key]?.push(issue.message);
			}
		}
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/client.ts.
Where is constructor() defined?
constructor() is defined in packages/astro/src/actions/runtime/client.ts at line 138.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.

Analyze Your Own Codebase

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

Try Supermodel Free