Skip to content

getManifestObject

Reads the manifest’s root object out of the visited Document node.

Import:

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

Signature:

function getManifestObject(node: unknown): JsonObjectNode | null

Parameters:

ParameterTypeDescription
nodeunknownThe Document node handed to the rule’s visitor.

Returns: JsonObjectNode | null — The root object node, or null when the document’s top-level value is not an object.