Skip to content

editBacklinksSnapshot<TPayload>

Edits a captured snapshot of backlinks, rewriting each backlink-holding note exactly once.

The counterpart of editBacklinks for callers that cannot fetch the backlinks at rewrite time — because the rename that invalidated them has already happened — or that rewrite links to several targets at once. See BacklinksSnapshot for both cases.

Import:

import { editBacklinksSnapshot } from 'obsidian-dev-utils/obsidian/link';

Signature:

function editBacklinksSnapshot(params: EditBacklinksSnapshotParams<TPayload>): Promise<void>

Parameters:

ParameterTypeDescription
paramsEditBacklinksSnapshotParams<TPayload>The parameters for editing the backlinks.

Returns: Promise<void> — A Promise that resolves when the backlinks have been edited.


Links to this page: