Skip to content

HeadingSubpathResult

Official

Subpath result for a heading from resolveSubpath

Import:

import type { HeadingSubpathResult } from 'obsidian';

Example:

console.log(resolveSubpath(myNoteCache, '#foo'));

Signature:

export interface HeadingSubpathResult extends SubpathResult

Extends: SubpathResult

Properties

PropertyTypeDescription
currentHeadingCacheThe cache of the found heading.
endLoc | nullThe end location of the subpath.
(Inherited from SubpathResult)
nextHeadingCacheThe cache of the next heading on the same or higher level.
startLocThe start location of the subpath.
(Inherited from SubpathResult)
type'heading'The type of the subpath result.

Links to this page: