Skip to content

PluginApiRef.whenAvailable method

PluginApiRef › whenAvailable

Waits for the API to become available.

Signature:

whenAvailable(options?: WhenAvailablePluginApiOptions | undefined): Promise<TApi>

Parameters:

ParameterTypeDescription
options?WhenAvailablePluginApiOptions | undefinedThe options for the wait.

Returns: Promise<TApi>A Promise that resolves with the API.