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): DeviceSettingRestoreParameters:
| Parameter | Type | Description |
|---|---|---|
previousValue | string | Exactly what readDeviceSetting returned before the change. |
Returns: DeviceSettingRestore — Whether to write the value back or to remove the setting again.