Skip to content

waitForThirdPartyPluginApi<TApi>

Waits for a third-party plugin’s API to become available. Settles once; see waitForPlugin.

Import:

import { waitForThirdPartyPluginApi } from '@mnaoumov/obsidian-lib/plugin/third-party-plugin';

Signature:

function waitForThirdPartyPluginApi(params: WaitForThirdPartyPluginApiParams<TApi>): Promise<TApi>

Parameters:

Parameter Type Description
params WaitForThirdPartyPluginApiParams<TApi> The WaitForThirdPartyPluginApiParams.

Returns: Promise<TApi> — A Promise resolving with the API.


Links to this page: