effect-io-ai

Package: effect
Module: Result

Result.void

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

Signature

declare const void: Result<void, never>

Source

Since v3.13.0