Skip to content

toFrontmatterChangeWithOffsets

Converts a frontmatter change to a frontmatter change with offsets.

Import:

import { toFrontmatterChangeWithOffsets } from 'obsidian-dev-utils/obsidian/file-change';

Signature:

function toFrontmatterChangeWithOffsets(fileChange: FrontmatterChange): FrontmatterChangeWithOffsets

Parameters:

ParameterTypeDescription
fileChangeFrontmatterChangeThe file change to convert.

Returns: FrontmatterChangeWithOffsets — The converted file change.