cap-nodejs

CAP Node.js API


CAP Node.js API / cap-core/src / isLegacyTransactionalPublishStorage

Function: isLegacyTransactionalPublishStorage()

isLegacyTransactionalPublishStorage<TTx>(storage): storage is TransactionalPublishStoragePort<TTx> & { savePublishWithTx: (event: CapPublishEvent<T>, tx: TTx) => Promise<string> }

Defined in: cap-core/src/ports/publish-storage.port.ts:84

Type Parameters

TTx

TTx = unknown

Parameters

storage

PublishStoragePort<TTx>

Returns

storage is TransactionalPublishStoragePort<TTx> & { savePublishWithTx: (event: CapPublishEvent<T>, tx: TTx) => Promise<string> }