effect-io-ai

Package: effect
Module: TxPubSub

TxPubSub.isTxPubSub

Checks whether the given value is a TxPubSub.

Example (Checking for a TxPubSub)

import { TxPubSub } from "effect"

declare const someValue: unknown

if (TxPubSub.isTxPubSub(someValue)) {
  console.log("This is a TxPubSub")
}

Signature

declare const isTxPubSub: (u: unknown) => u is TxPubSub<unknown>

Source

Since v4.0.0