Home / Function/ isInputError() — astro Function Reference

isInputError() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2e952e49_a89b_6f3a_62c0_f5d157cd75c8["isInputError()"]
  eb04bc4a_f415_2ce3_c34b_e7ef77fb812f["client.ts"]
  2e952e49_a89b_6f3a_62c0_f5d157cd75c8 -->|defined in| eb04bc4a_f415_2ce3_c34b_e7ef77fb812f
  e3aecf4e_cdde_b1e2_a818_1ca7565dbc4b["fromJson()"]
  e3aecf4e_cdde_b1e2_a818_1ca7565dbc4b -->|calls| 2e952e49_a89b_6f3a_62c0_f5d157cd75c8
  style 2e952e49_a89b_6f3a_62c0_f5d157cd75c8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/actions/runtime/client.ts lines 115–126

export function isInputError<T extends ErrorInferenceObject>(
	error?: unknown | ActionError<T>,
): error is ActionInputError<T> {
	return (
		typeof error === 'object' &&
		error != null &&
		'type' in error &&
		error.type === 'AstroActionInputError' &&
		'issues' in error &&
		Array.isArray(error.issues)
	);
}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free