Skip to content

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): UnwrappedTransferredValue

Parameters:

Parameter Type Description
result unknown A result, possibly wrapped by withTransfer.

Returns: UnwrappedTransferredValue — The value and its transfer list.