RemoveEmptyFrontmatterValuesParams
Parameters for removeEmptyFrontmatterValues.
Import:
import type { RemoveEmptyFrontmatterValuesParams } from 'obsidian-dev-utils/obsidian/frontmatter';Signature:
export interface RemoveEmptyFrontmatterValuesParamsProperties
| Property | Type | Description |
|---|---|---|
| frontmatter | GenericObject | The front matter object to remove the empty values from. It is modified in place. |
| shouldRemoveEmptyArrays? | boolean | Whether to remove arrays that are empty, including the ones that became empty after their own items were removed. |
| shouldRemoveEmptyObjects? | boolean | Whether to remove plain objects that are empty, including the ones that became empty after their own properties were removed. |
| shouldRemoveNulls? | boolean | Whether to remove null and undefined values. Both are treated the same: they are the two ways a key can be present but carry no value, and undefined cannot survive a YAML round-trip anyway. |
Links to this page: