effect-io-ai

Package: effect
Module: Effect

Effect.isEffect

Checks whether a value is an Effect.

Example (Checking whether a value is an Effect)

import { Effect } from "effect"

console.log(Effect.isEffect(Effect.succeed(1))) // true
console.log(Effect.isEffect("hello")) // false

Signature

declare const isEffect: (u: unknown) => u is Effect<any, any, any>

Source

Since v2.0.0