Skip to content

getBacklinksForFileSafe

Retrieves the backlinks for a file safely.

Import:

import { getBacklinksForFileSafe } from 'obsidian-dev-utils/obsidian/metadata-cache';

Signature:

function getBacklinksForFileSafe(params: GetBacklinksForFileSafeParams): Promise<CustomArrayDict<Reference>>

Parameters:

ParameterTypeDescription
paramsGetBacklinksForFileSafeParamsThe parameters for retrieving the backlinks.

Returns: Promise<CustomArrayDict<Reference>> — A Promise that resolves to an array dictionary of backlinks.


Links to this page: