.effect(...) when a procedure implementation should run as an Effect.
Handlers can be generator callbacks, Effect.fn(...) callbacks, or functions that return an Effect.
effect-procedure.ts
input, context, errors, path, signal, and metadata.
Handler shape
handler-options.ts
Effect-returning handlers
Use a plain Effect-returning callback when you already have anEffect value, or when you want to keep a named Effect.fn(...) span inside the automatic procedure span.
effect-returning.ts
Mix with standard oRPC handlers
You can put standard oRPC procedures and Effect procedures in the same router.mixed-router.ts
Next steps
- Add schemas with Input and output schemas.
- Add services with Service injection.