Package: effect
Module: Cause
Checks whether an arbitrary value is an UnknownError.
Example (Checking the runtime type)
import { Cause } from "effect"
console.log(Cause.isUnknownError(new Cause.UnknownError("x"))) // true
console.log(Cause.isUnknownError("nope")) // false
Signature
declare const isUnknownError: (u: unknown) => u is UnknownError
Since v4.0.0