obsidian-dev-utils
Version:
This is the collection of useful functions that you can use for your Obsidian plugin development
27 lines (26 loc) • 755 B
text/typescript
/**
* @packageDocumentation
*
* Initializes the plugin context and sets up the plugin ID.
*/
import type { App } from 'obsidian';
/**
* Sets the CSS class of an element.
*
* @param el - The element to set the CSS class of.
* @param cssClasses - The CSS classes to set.
*/
export declare function addPluginCssClasses(el: HTMLElement, ...cssClasses: string[]): void;
/**
* Initializes the debug controller.
*
* @param win - The window to initialize the debug controller for.
*/
export declare function initDebugController(win: Window): void;
/**
* Initializes the plugin context.
*
* @param app - The Obsidian app instance.
* @param pluginId - The plugin ID.
*/
export declare function initPluginContext(app: App, pluginId: string): void;