effect-io-ai

Package: effect
Module: Function

Function.constVoid

Returns no meaningful value when called.

When to use

Use when you need a thunk that is called only for its effect and has no meaningful return value.

Example (Returning void from a thunk)

import { Function } from "effect"
import * as assert from "node:assert"

assert.deepStrictEqual(Function.constVoid(), undefined)

Signature

declare const constVoid: LazyArg<void>

Source

Since v2.0.0