Skip to content

extractLinkFile

Extracts the file associated with a link.

Import:

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

Signature:

function extractLinkFile(params: ExtractLinkFileParams): TFile | null

Parameters:

ParameterTypeDescription
paramsExtractLinkFileParamsThe parameters for extracting the link file.

Returns: TFile | null — The file associated with the link, or null if not found.


Links to this page: