SafeResult Type — astro Architecture
Architecture documentation for the SafeResult type/interface in types.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD a8a63874_8da3_243e_fd1a_33182870b30b["SafeResult"] bdc6ff27_167d_e3f3_67b4_3308b4d8fd29["types.ts"] a8a63874_8da3_243e_fd1a_33182870b30b -->|defined in| bdc6ff27_167d_e3f3_67b4_3308b4d8fd29 style a8a63874_8da3_243e_fd1a_33182870b30b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/actions/runtime/types.ts lines 54–62
export type SafeResult<TInput extends ErrorInferenceObject, TOutput> =
| {
data: TOutput;
error: undefined;
}
| {
data: undefined;
error: ActionError<TInput>;
};
Defined In
Source
Frequently Asked Questions
What is the SafeResult type?
SafeResult is a type/interface in the astro codebase, defined in packages/astro/src/actions/runtime/types.ts.
Where is SafeResult defined?
SafeResult is defined in packages/astro/src/actions/runtime/types.ts at line 54.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free