Skip to content

isRestorableSettingsRecoveryCopy

Checks whether a recovery copy can be restored as it is, which needs its raw text to parse as JSON. A copy of a file that did not parse has to be repaired by hand first.

Import:

import { isRestorableSettingsRecoveryCopy } from '@mnaoumov/obsidian-lib/settings-recovery';

Signature:

function isRestorableSettingsRecoveryCopy(copy: SettingsRecoveryCopy): boolean

Parameters:

Parameter Type Description
copy SettingsRecoveryCopy The copy to check.

Returns: boolean — Whether the copy can be restored.