@compass-framework/plugin 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/@types/BasePlugin.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import {PluginRuntime} from "./PluginRuntime";
|
|
|
2
2
|
import {PluginIdentifier} from "./PluginIdentifier";
|
|
3
3
|
|
|
4
4
|
export declare abstract class BasePlugin<Property, Arguments> {
|
|
5
|
-
public abstract onCreated(args: Arguments): PluginIdentifier
|
|
5
|
+
public abstract onCreated(args: Arguments): Promise<PluginIdentifier>;
|
|
6
6
|
|
|
7
|
-
public abstract onMounted(
|
|
7
|
+
public abstract onMounted(runtime: PluginRuntime<Property>): Promise<void>;
|
|
8
8
|
|
|
9
9
|
public abstract onRemoved(): void;
|
|
10
10
|
|
|
@@ -5,7 +5,7 @@ export declare abstract class BasePluginManager<Property, Arguments> {
|
|
|
5
5
|
|
|
6
6
|
public abstract getPluginProperty(): Property;
|
|
7
7
|
|
|
8
|
-
public installPlugin(plugin: BasePlugin<Property, Arguments>): void
|
|
8
|
+
public installPlugin(plugin: BasePlugin<Property, Arguments>): Promise<void>;
|
|
9
9
|
|
|
10
10
|
public unInstallPlugin(plugin: BasePlugin<Property, Arguments>): void;
|
|
11
11
|
}
|