Skip to content

InternalPluginInstance<InternalPlugin>

Unofficial

Base interface for an internal plugin instance, providing lifecycle hooks and metadata.

Import:

import type { InternalPluginInstance } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface InternalPluginInstance<InternalPlugin>

Properties

Property Type Description
description string Human-readable description of this plugin.
id string Unique identifier for this plugin.
name string Human-readable display name of this plugin.

Methods

Method Returns Description
init(app, plugin) void Initialize the plugin instance with app and plugin references.
onDisable(app, plugin) void Called when the plugin is disabled.
onEnable(app, plugin) Promise<void> Called when the plugin is enabled.
onUserDisable(app) void Called when the user manually disables the plugin.
onUserEnable(app) void Called when the user manually enables the plugin.

Links to this page: