Skip to content

getStringValue

Reads the value of a Momoa string node.

Import:

import { getStringValue } from 'obsidian-dev-utils/script-utils/linters/eslint-rules/manifest-helpers';

Signature:

function getStringValue(node: JsonNode): string | null

Parameters:

ParameterTypeDescription
nodeJsonNodeThe node to read.

Returns: string | null — The string value, or null when the node is not a string.