Hyperlinkv0.8.0-beta.28

TxPubSub

TxPubSub.isTxPubSubconsteffect/TxPubSub.ts:684
(u: unknown): u is TxPubSub<unknown>

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")
}
guards
export const isTxPubSub = (u: unknown): u is TxPubSub<unknown> => hasProperty(u, TypeId)