@compass-framework/plugin 1.0.12 → 1.0.13
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/Plugin.d.ts +2 -2
- package/@types/PluginManager.d.ts +4 -4
- package/package.json +1 -1
package/@types/Plugin.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {Environment} from "./Environment";
|
|
2
2
|
import {Identifier} from "./Identifier";
|
|
3
3
|
|
|
4
|
-
export declare abstract class Plugin<Property> {
|
|
5
|
-
public abstract onCreated(
|
|
4
|
+
export declare abstract class Plugin<Property, Arguments> {
|
|
5
|
+
public abstract onCreated(args: Arguments): Identifier;
|
|
6
6
|
|
|
7
7
|
public abstract onMounted(env: Environment<Property>): void;
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {Context} from "@compass-framework/core";
|
|
2
2
|
import {Plugin} from "./Plugin";
|
|
3
3
|
|
|
4
|
-
export declare class PluginManager<Property> {
|
|
5
|
-
public constructor(context: Context, property: Property);
|
|
4
|
+
export declare class PluginManager<Property, Arguments> {
|
|
5
|
+
public constructor(context: Context, property: Property, args: Arguments);
|
|
6
6
|
|
|
7
|
-
public usePlugin(plugin: Plugin<Property>): void;
|
|
7
|
+
public usePlugin(plugin: Plugin<Property, Arguments>): void;
|
|
8
8
|
|
|
9
|
-
public unUsePlugin(plugin: Plugin<Property>): void;
|
|
9
|
+
public unUsePlugin(plugin: Plugin<Property, Arguments>): void;
|
|
10
10
|
}
|