Shape of the envelope object emitted by a Serializable's instance-level
toJSON() (the method native JSON.stringify picks up via protocol).
Concrete types narrow this with their specific marker/tag literals.
The @functype marker is the type discriminator (defends against
_tag-collision with Effect/fp-ts). _tag is the variant discriminator
within that type — kept across the board (variant-less types repeat the
marker for back-compat with 1.1.0 readers that did parsed._tag === "List").
Payload shape is type-specific: canonical types carry value; failure
branches (Try.Failure, Task.Err, Lazy with thrown thunk) carry
error: SerializedError instead.
Shape of the envelope object emitted by a Serializable's instance-level
toJSON()(the method nativeJSON.stringifypicks up via protocol). Concrete types narrow this with their specific marker/tag literals.The
@functypemarker is the type discriminator (defends against_tag-collision with Effect/fp-ts)._tagis the variant discriminator within that type — kept across the board (variant-less types repeat the marker for back-compat with 1.1.0 readers that didparsed._tag === "List").Payload shape is type-specific: canonical types carry
value; failure branches (Try.Failure,Task.Err,Lazywith thrown thunk) carryerror: SerializedErrorinstead.