Documentation Index
Fetch the complete documentation index at: https://mintlify.com/eersnington/sideffect/llms.txt
Use this file to discover all available pages before exploring further.
Schema and TaggedError are re-exported from Sideffect for convenience so users do not need to install or import from the effect package directly. Every schema you need to describe workflow payloads, step inputs, and step outputs is available through this single import.
Schema
Schema is the full Schema namespace re-exported from the effect library. You use it to describe the shape of workflow payloads and step inputs and outputs. Sideffect passes every payload and result through Schema.decodeUnknownSync at runtime, so schemas must be decodable from unknown values (as all built-in schemas are).
Primitive schemas
| Schema | TypeScript type | Notes |
|---|---|---|
Schema.String | string | |
Schema.Number | number | |
Schema.Boolean | boolean | |
Schema.Void | void | Useful for steps that return nothing |
Schema.Uint8Array | Uint8Array | For binary payloads such as image data |
Composite schemas
Schema.Struct({ ... }) — Describes a plain object with named fields:
Schema.Array(innerSchema) — Describes an array of values that all conform to innerSchema:
Transformation schemas
Schema.NumberFromString — Decodes a string and parses it into a number. This is particularly useful when your workflow’s event payload arrives from an HTTP request or a queue message where numeric values are serialized as strings:
TaggedError
TaggedError is re-exported from effect/Data. It is a base class for creating typed, discriminated error classes. Using tagged errors makes it straightforward to handle specific failure cases in Effect-based step implementations.
Defining a custom tagged error
Using tagged errors in a step
Schema is the complete namespace from the effect library — only the most
commonly used schemas in Sideffect patterns are listed above. For the full
API including transformations, filters, branded types, and more, see the
Effect Schema documentation.