effect-io-ai

Package: effect
Module: Predicate

Predicate.isUnknown

Type guard that always returns true.

When to use

Use when you need a Predicate that always accepts, e.g. as a placeholder.

Example (Matching every value)

import { Predicate } from "effect"

console.log(Predicate.isUnknown(123))

See

Signature

declare const isUnknown: (_: unknown) => _ is unknown

Source

Since v2.0.0