toggleEnableCommunityPlugin
Enables or disables a community plugin to match the desired state. Delegates to enableCommunityPlugin / disableCommunityPlugin, so it is idempotent.
Import:
import { toggleEnableCommunityPlugin } from 'obsidian-dev-utils/obsidian/community-plugins';Signature:
function toggleEnableCommunityPlugin(params: ToggleEnableCommunityPluginParams): Promise<void>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | ToggleEnableCommunityPluginParams | The ToggleEnableCommunityPluginParams. |
Returns: Promise<void> — A Promise that resolves once the plugin matches the desired enabled state.
Links to this page: