Skip to content

SerializableWithResult

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

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.

Since

3.10.0

Extends

Extended by

Type Parameters

A

I

R

Success

SuccessEncoded

Failure

FailureEncoded

ResultR

Properties

[symbolSerializable]

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

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

Inherited from

Serializable.[symbolSerializable]


[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>

Inherited from

WithResult.[symbolWithResult]