Skip to content

findManifestMember

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

Import:

import { findManifestMember } from '@mnaoumov/obsidian-dev-toolkit/linters/eslint-rules/manifest-helpers';

Signature:

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

Parameters:

Parameter Type Description
manifestObject JsonObjectNode The manifest’s root object node.
key string The key to look for.

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