Skip to content

CommitCompositionParams

Parameters for Lib.commitComposition.

Import:

import type { CommitCompositionParams } from 'obsidian-integration-testing';

Signature:

export interface CommitCompositionParams

Properties

PropertyTypeDescription
textstringThe text the composition is committed as. It replaces the composition's current text, so it may differ from it, for example by carrying a trailing separator.
window?WindowThe Obsidian window holding the composition: the main window or a popout.

**On mobile** there are no popouts, so any window but the main one throws.

Links to this page: