Package: effect
Module: Result
Provides a pre-built successful Result that carries undefined.
When to use
Use when you need a successful Result value that signals completion
without carrying meaningful data.
Details
This is equivalent to Result.succeed(undefined), but reuses a shared
Success wrapper instead of allocating one each time.
Example (Referencing void results)
import { Result } from "effect"
const result: Result.Result<void> = Result.void
console.log(Result.isSuccess(result))
// Output: true
See
succeed to create a Success with a specific valueSignature
declare const void: Result<void, never>
Since v3.13.0