unwrapTransferredValue
Splits a result into the value to post and the objects to transfer.
Import:
import { unwrapTransferredValue } from '@mnaoumov/obsidian-lib/worker-protocol';Signature:
function unwrapTransferredValue(result: unknown): UnwrappedTransferredValueParameters:
| Parameter | Type | Description |
|---|---|---|
result |
unknown | A result, possibly wrapped by withTransfer. |
Returns: UnwrappedTransferredValue — The value and its transfer list.