Skip to content

@lelantos-org/sdk / advanced / TreeSyncOpts

Interface: TreeSyncOpts ​

Defined in: @lelantos-org/sdk/dist/sync/tree-store.d.ts:97

Extends ​

Extended by ​

Properties ​

maxChunks? ​

ts
optional maxChunks?: number;

Defined in: @lelantos-org/sdk/dist/sync/chunk-feed.d.ts:26

Defaults to MAX_CHUNKS; paging is always bounded.

Inherited from ​

PagingOpts.maxChunks


onProgress? ​

ts
optional onProgress?: (p) => void;

Defined in: @lelantos-org/sdk/dist/sync/tree-store.d.ts:99

Per-chunk progress, so a stuck sync is observable.

Parameters ​

ParameterType
p{ chunkId: number; leaves: number; syncedCount: number; }
p.chunkIdnumber
p.leavesnumber
p.syncedCountnumber

Returns ​

void


signal? ​

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/sync/chunk-feed.d.ts:27

Inherited from ​

PagingOpts.signal