Skip to content

findManifestMember

Finds a top-level member of the manifest by key.

Import:

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

Signature:

function findManifestMember(manifestObject: JsonObjectNode, key: string): JsonMemberNode | null

Parameters:

ParameterTypeDescription
manifestObjectJsonObjectNodeThe manifest’s root object node.
keystringThe key to look for.

Returns: JsonMemberNode | null — The first member with that key, or null when the manifest has none.