Skip to content

SerializableWithResult

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

The SerializableWithResult trait is specifically designed to model remote procedures that require serialization of their input and output, managing both successful and failed outcomes.

This trait combines functionality from both the Serializable and WithResult traits to handle data serialization and the bifurcation of operation results into success or failure categories.

3.10.0

A

I

R

Success

SuccessEncoded

Failure

FailureEncoded

ResultR

readonly [symbolSerializable]: Schema<A, I, R>

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

Serializable.[symbolSerializable]


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>

WithResult.[symbolWithResult]