effect-io-ai

Package: effect
Module: Function

Function.constVoid

A thunk that returns always void.

Example

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

assert.deepStrictEqual(constVoid(), undefined)

Signature

declare const constVoid: LazyArg<void>

Source

Since v2.0.0