PluginApiRef.whenAvailable method
PluginApiRef › whenAvailable
Waits for the API to become available.Signature:
whenAvailable(options?: WhenAvailablePluginApiOptions | undefined): Promise<TApi>Parameters:
| Parameter | Type | Description |
|---|---|---|
| options? | WhenAvailablePluginApiOptions | undefined | The options for the wait. |
Returns: Promise<TApi> — A Promise that resolves with the API.