Skip to content

TransferredValue<TValue>

A result marked to transfer some of its objects rather than copy them. Build it with withTransfer.

Import:

import type { TransferredValue } from '@mnaoumov/obsidian-lib/worker-protocol';

Signature:

export interface TransferredValue<TValue>

Properties

PropertyTypeDescription
__obsidianLibTransferredValuetrueThe marker that identifies the wrapper structurally, so a wrapper built by another copy of this library is recognized too.
transferreadonly Transferable[]The objects to transfer.
valueTValueThe value.

Links to this page: