(_: unknown): _ is unknownType 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))guardsisNever
Source effect/Predicate.ts:9723 lines
export function function isUnknown(
_: unknown
): _ is unknown
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))
isUnknown(_: unknown_: unknown): _: unknown_ is unknown {
return true
}Referenced by 2 symbols