WorkspaceLayoutStateKeyDefinition<T>
Defines a layout-scoped key.
Import:
import type { WorkspaceLayoutStateKeyDefinition } from '@mnaoumov/obsidian-lib/components/workspace-layout-state-component';Signature:
export interface WorkspaceLayoutStateKeyDefinition<T>Properties
| Property | Type | Description |
|---|---|---|
| defaultValue | T | The value read when nothing valid is stored. |
| isValid? | (value: unknown) => value is T | Checks a stored value. A value that fails reads as the default and stays stored until it is replaced or unset. |
| key | string | The key name, unique within the plugin. |