effect-io-ai

Package: effect
Module: TxQueue

TxQueue.isTxQueue

Checks whether the given value is a TxQueue.

Example (Checking queue handles)

import { TxQueue } from "effect"

declare const someValue: unknown

if (TxQueue.isTxQueue(someValue)) {
  // someValue is now typed as TxQueue<unknown, unknown>
  console.log("This is a TxQueue")
}

Signature

declare const isTxQueue: <A = unknown, E = unknown>(u: unknown) => u is TxQueue<A, E>

Source

Since v4.0.0