Skip to content

LibraryInitParams

Parameters for Library.init.

These are purely cosmetic values the host plugin injects once at initialization — deliberately NOT the plugin ID itself, so the agnostic core cannot reconstruct a capability from them.

Import:

import type { LibraryInitParams } from 'obsidian-dev-utils/library';

Signature:

export interface LibraryInitParams

Properties

PropertyTypeDescription
cssClassScopestringThe per-plugin CSS class scope applied alongside the library class by addPluginCssClasses.
debugPrefixNamespacestringThe namespace prefix prepended to the library's debug namespaces (e.g. ${pluginId}:).
shouldPrintStackTracebooleanWhether debug logging should append a rich DevTools stack trace.