parseCommandSwitchesRecord
Reads a stored command switches record, dropping whatever part of it is malformed.
Import:
import { parseCommandSwitchesRecord } from '@mnaoumov/obsidian-lib/command-handlers/command-switches';Signature:
function parseCommandSwitchesRecord(value: unknown): CommandSwitchesRecordParameters:
| Parameter | Type | Description |
|---|---|---|
value |
unknown | The stored value, as read from data.json. |
Returns: CommandSwitchesRecord — The record, with only its well-formed fields.