UNPKG

obsidian-dev-utils

Version:

This is the collection of useful functions that you can use for your Obsidian plugin development

27 lines (26 loc) 837 B
/** * @packageDocumentation * * This module provides a type for frontmatter link cache with offsets. */ import type { FrontmatterLinkCache, Reference } from 'obsidian'; /** * Type for frontmatter link cache with offsets. */ export interface FrontmatterLinkCacheWithOffsets extends FrontmatterLinkCache { /** * The end offset of the link in the property value. */ endOffset: number; /** * The start offset of the link in the property value. */ startOffset: number; } /** * Checks if the reference is a frontmatter link cache with offsets. * * @param reference - The reference to check. * @returns Whether the reference is a frontmatter link cache with offsets. */ export declare function isFrontmatterLinkCacheWithOffsets(reference: Reference): reference is FrontmatterLinkCacheWithOffsets;