effect-io-ai

Package: effect
Module: Predicate

Predicate.isNever

Type guard that always returns false.

When to use

Use when you need a Predicate that never accepts, e.g. in default branches.

Example (Matching no values)

import { Predicate } from "effect"

console.log(Predicate.isNever("anything"))

See

Signature

declare const isNever: (_: unknown) => _ is never

Source

Since v2.0.0