Skip to content

WithResult

Defined in: node_modules/.pnpm/effect@3.14.8/node_modules/effect/dist/dts/Schema.d.ts:4821

The WithResult trait is designed to encapsulate the outcome of an operation, distinguishing between success and failure cases. Each case is associated with a schema that defines the structure and types of the success or failure data.

Since

3.10.0

Extended by

Type Parameters

Success

SuccessEncoded

Failure

FailureEncoded

ResultR

Properties

[symbolWithResult]

readonly [symbolWithResult]: object

Defined in: node_modules/.pnpm/effect@3.14.8/node_modules/effect/dist/dts/Schema.d.ts:4822

failure

readonly failure: Schema<Failure, FailureEncoded, ResultR>

success

readonly success: Schema<Success, SuccessEncoded, ResultR>