Home / Function/ isActionError() — astro Function Reference

isActionError() — astro Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

packages/astro/src/actions/runtime/client.ts lines 102–109

export function isActionError(error?: unknown): error is ActionError {
	return (
		typeof error === 'object' &&
		error != null &&
		'type' in error &&
		error.type === 'AstroActionError'
	);
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isActionError() do?
isActionError() is a function in the astro codebase, defined in packages/astro/src/actions/runtime/client.ts.
Where is isActionError() defined?
isActionError() is defined in packages/astro/src/actions/runtime/client.ts at line 102.
What calls isActionError()?
isActionError() 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