Skip to content

WithResult

Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:4819

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.

3.10.0

Success

SuccessEncoded

Failure

FailureEncoded

ResultR

readonly [symbolWithResult]: object

Defined in: node_modules/.pnpm/effect@3.15.2/node_modules/effect/dist/dts/Schema.d.ts:4820

readonly failure: Schema<Failure, FailureEncoded, ResultR>

readonly success: Schema<Success, SuccessEncoded, ResultR>