Skip to content

saveNote

Saves the specified note in the Obsidian app.

Import:

import { saveNote } from 'obsidian-dev-utils/obsidian/vault';

Signature:

function saveNote(app: App, pathOrFile: PathOrFile): Promise<void>

Parameters:

ParameterTypeDescription
appAppThe Obsidian app instance.
pathOrFilePathOrFileThe note to be saved.

Returns: Promise<void> — A Promise that resolves when the note is saved.