effect-io-ai

Package: effect
Module: Effect

Effect.isEffect

Checks if a given value is an Effect value.

When to Use

This function can be useful for checking the type of a value before attempting to operate on it as an Effect value. For example, you could use Effect.isEffect to check the type of a value before using it as an argument to a function that expects an Effect value.

Signature

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

Source

Since v2.0.0