Skip to content

resolveDeviceSettingRestore

Decides how a setting read before a change is put back afterwards.

Import:

import { resolveDeviceSettingRestore } from 'obsidian-integration-testing';

Signature:

function resolveDeviceSettingRestore(previousValue: string): DeviceSettingRestore

Parameters:

ParameterTypeDescription
previousValuestringExactly what readDeviceSetting returned before the change.

Returns: DeviceSettingRestore — Whether to write the value back or to remove the setting again.