effect-io-ai

Package: effect
Module: Function

Function.absurd

The absurd function is a stub for cases where a value of type never is encountered in your code, meaning that it should be impossible for this code to be executed.

This function is particularly useful when it’s necessary to specify that certain cases are impossible.

Signature

declare const absurd: <A>(_: never) => A

Source

Since v2.0.0